<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/gitweb, branch v1.5.5-rc2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.5.5-rc2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.5.5-rc2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2008-03-05T21:38:34Z</updated>
<entry>
<title>gitweb: Fix and simplify pickaxe search</title>
<updated>2008-03-05T21:38:34Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2008-03-05T08:31:55Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c582abae46725504cee9ff91816c979989632f07'/>
<id>urn:sha1:c582abae46725504cee9ff91816c979989632f07</id>
<content type='text'>
Instead of using "git-rev-list | git-diff-tree" pipeline for pickaxe
search, use git-log with appropriate options.  Besides reducing number
of forks by one, this allows to use list form of open, which in turn
allow to not worry about quoting arguments and to avoid forking shell.

The options to git-log were chosen to reduce required changes in
pickaxe git command output parsing; gitweb still parses returned
commits one by one.

Parsing "pickaxe" output is simplified: git_search now reuses
parse_difftree_raw_line and writes affected files as they arrive using
the fact that commit name goes always before [raw] diff.

While at it long bug of pickaxe search was fixed, namely that the last
commit found by pickaxe search was never shown.

Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Mark first match when searching commit messages</title>
<updated>2008-03-02T23:26:31Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2008-03-02T15:57:14Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6dfbb304be5a5e260321c5f47626582dbe2c62f0'/>
<id>urn:sha1:6dfbb304be5a5e260321c5f47626582dbe2c62f0</id>
<content type='text'>
Due to greediness of a pattern, gitweb used to mark (show) last match
in line, if there are more than one match in line. Now it shows first.
Showing all matches in a line would require further work.

Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Clearly distinguish regexp / exact match searches</title>
<updated>2008-02-27T21:24:08Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@ucw.cz</email>
</author>
<published>2008-02-26T12:22:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0e55991987e490a69bc549f6f789b34489c953a7'/>
<id>urn:sha1:0e55991987e490a69bc549f6f789b34489c953a7</id>
<content type='text'>
This patch does a couple of things:

* Makes commit/author/committer search case insensitive

  To be consistent with the grep search; I see no convincing
  reason for the search to be case sensitive, and you might
  get in trouble especially with contributors e.g. from Japan
  or France where they sometimes like to uppercase their last
  name.

* Makes grep search by default search for fixed strings.

* Introduces 're' checkbox that enables POSIX extended regexp searches

  This works for all the search types. The idea comes from Jakub.

It does not make much sense (and is not easy at all) to untangle most
of these changes from each other, thus they all go in a single patch.

[jn: Cherry-picked from Pasky's http://repo.or.cz/git/gitweb.git]

Signed-off-by: Petr Baudis &lt;pasky@suse.cz&gt;
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Simplify fixed string search</title>
<updated>2008-02-27T21:22:11Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2008-02-26T12:22:07Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0270cd0eeaff06f6bee1b52d5cdffb1a6e69c15a'/>
<id>urn:sha1:0270cd0eeaff06f6bee1b52d5cdffb1a6e69c15a</id>
<content type='text'>
Use '--fixed-strings' option to git-rev-list to simplify and improve
searching commit messages (commit search).  It allows to search for
example for "don't" successfully from gitweb.

Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Change parse_commits signature to allow for multiple options</title>
<updated>2008-02-27T21:21:32Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2008-02-26T12:22:06Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=311e552e7674be620bd930ddada307c15140c6ac'/>
<id>urn:sha1:311e552e7674be620bd930ddada307c15140c6ac</id>
<content type='text'>
Change order of parameters in parse_commits() to have $filename
before @args (extra options), to allow for multiple extra options,
for example both '--grep=&lt;pattern&gt;' and '--fixed-strings'.

Change all callers to follow new calling convention.

Originally by Petr Baudis, in http://repo.or.cz/git/gitweb.git:

    b98f0a7c gitweb: Clearly distinguish regexp / exact match searches

Signed-off-by: Petr Baudis &lt;pasky@suse.cz&gt;
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Better cutting matched string and its context</title>
<updated>2008-02-26T06:20:18Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2008-02-25T20:07:57Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=b8d97d07fd5025232cae74cfc9a555abd9ac390e'/>
<id>urn:sha1:b8d97d07fd5025232cae74cfc9a555abd9ac390e</id>
<content type='text'>
Improve look of commit search output ('search' view) by better cutting
of matched string and its context in match info, as suggested by Junio.
For example, if you are looking for "very long search string" in the
following line:

    Could somebody test this with very long search string, and see how

you would now see:

    ...this with &lt;&lt;very long ... string&gt;&gt;, and see...

instead of:

    Could som... &lt;&lt;very long search...&gt;&gt;, and see...

(where &lt;&lt;something&gt;&gt; denotes emphasized / colored fragment; matched
fragment to be more exact).

For this feature, support for fourth [optional] parameter to chop_str
subroutine was added.  This fourth parameter is used to denote where
to cut string to make it shorter.  chop_str can now cut at the
beginning (from the _left_ side of the string), in the middle
(_center_ of the string), or at the end (from the _right_ side of
the string); cutting from right is the default:

  chop_str(somestring, len, slop, 'left')    -&gt;  ' ...string'
  chop_str(somestring, len, slop, 'center')  -&gt;  'som ... ing'
  chop_str(somestring, len, slop, 'right')   -&gt;  'somestr... '

If you want to use default slop (default additional length), use undef
as value for third parameter to chop_str.

While at it, return from chop_str early if given string is so short
that chop_str couldn't shorten it.  Simplify also regexp used by
chop_str.  Make ellipsis (dots) stick to shortened fragment for
cutting at ends, to better see which part got shortened.

Simplify passing all arguments to chop_str in chop_and_escape_str
subroutine. This was needed to pass additional options to chop_str.

Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Fix bugs in git_search_grep_body: it's length(), not len()</title>
<updated>2008-02-23T22:22:01Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2008-02-23T21:37:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=9d561ad324fc8942919981f2c80360e22896989c'/>
<id>urn:sha1:9d561ad324fc8942919981f2c80360e22896989c</id>
<content type='text'>
Use int(&lt;expr&gt;/2) to get integer value for a substring length.

Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Better chopping in commit search results</title>
<updated>2008-02-22T18:06:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-02-22T16:33:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=be8b9063810f0c47f825c47045c7ca137f520edb'/>
<id>urn:sha1:be8b9063810f0c47f825c47045c7ca137f520edb</id>
<content type='text'>
When searching commit messages (commit search), if matched string is
too long, the generated HTML was munged leading to an ill-formed XHTML
document.

Now gitweb chop leading, trailing and matched parts, HTML escapes
those parts, then composes and marks up match info.  HTML output is
never chopped.  Limiting matched info to 80 columns (with slop) is now
done by dividing remaining characters after chopping match equally to
leading and trailing part, not by chopping composed and HTML marked
output.

Noticed-by: Jean-Baptiste Quenot &lt;jbq@caraldi.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Fix bug in href(..., -replay=&gt;1) when using 'pathinfo' form</title>
<updated>2008-02-20T05:30:44Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2008-02-14T08:22:30Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=afa9b620f9432491a453d752e8bf62860d7834c0'/>
<id>urn:sha1:afa9b620f9432491a453d752e8bf62860d7834c0</id>
<content type='text'>
URLs generated by href(..., -replay=&gt;1) (which includes 'next page'
links and alternate view links) didn't set project info correctly
when current page URL is in pathinfo form.

This resulted in broken links such like:

  http://www.example.com/w/ARRAY(0x85a5318)?a=shortlog;pg=1

if the 'pathinfo' feature was used, or

  http://www.example.com/w/?a=shortlog;pg=1

if it wasn't, instead of correct:

  http://www.example.com/w/project.git?a=shortlog;pg=1

This was caused by the fact that href() always replays params in the
arrayref form, were they multivalued or singlevalued, and the code
dealing with 'pathinfo' feature couldn't deal with $params{'project'}
being arrayref.

Setting $params{'project'} is moved before replaying params; this
ensures that 'project' parameter is processed correctly.

Noticed-by: Peter Oberndorfer &lt;kumbayo84@arcor.de&gt;
Noticed-by: Wincent Colaiuta &lt;win@wincent.com&gt;
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'br/gitweb'</title>
<updated>2008-02-18T03:31:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-02-18T03:31:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a8f6b201aadcadeb9bfe05a66de32878bff800f7'/>
<id>urn:sha1:a8f6b201aadcadeb9bfe05a66de32878bff800f7</id>
<content type='text'>
* br/gitweb:
  gitweb: Use the config file to set repository owner's name.
</content>
</entry>
</feed>
