<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/gitweb/gitweb.perl, branch v2.14.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v2.14.3</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v2.14.3'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2017-08-23T21:33:44Z</updated>
<entry>
<title>Merge branch 'hb/gitweb-project-list' into maint</title>
<updated>2017-08-23T21:33:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-23T21:33:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=b9e56be086ffa4f8431082a6fb25225e79e5bbc8'/>
<id>urn:sha1:b9e56be086ffa4f8431082a6fb25225e79e5bbc8</id>
<content type='text'>
When a directory is not readable, "gitweb" fails to build the
project list.  Work this around by skipping such a directory.

It might end up hiding a problem under the rug and a better
solution might be to loudly complain to the administrator pointing
out the problematic directory, but this will at least make it
"work".

* hb/gitweb-project-list:
  gitweb: skip unreadable subdirectories
</content>
</entry>
<entry>
<title>gitweb: skip unreadable subdirectories</title>
<updated>2017-07-18T19:10:17Z</updated>
<author>
<name>Hielke Christian Braun</name>
<email>hcb@unco.de</email>
</author>
<published>2017-07-18T08:41:54Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=46a13857fc036b54ac2ddd0a218e5cc171aa7bd9'/>
<id>urn:sha1:46a13857fc036b54ac2ddd0a218e5cc171aa7bd9</id>
<content type='text'>
gitweb terminates and shows no project list, if it can not access a
sub-directory in the project root directory while looking for projects
to show.

Work it around by skipping unreadable directories.

Signed-off-by: Hielke Christian Braun &lt;hcb@unco.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Spelling fixes</title>
<updated>2017-06-27T17:35:49Z</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2017-06-25T10:20:41Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=64127575149e35b409bc2f78962f86507346d604'/>
<id>urn:sha1:64127575149e35b409bc2f78962f86507346d604</id>
<content type='text'>
Signed-off-by: Ville Skyttä &lt;ville.skytta@iki.fi&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: use https links to Wikipedia to avoid http redirects</title>
<updated>2017-05-15T04:04:54Z</updated>
<author>
<name>Sven Strickroth</name>
<email>email@cs-ware.de</email>
</author>
<published>2017-05-13T09:54:51Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5e68729fd9a17e9e4037abdffa52454a5c64f343'/>
<id>urn:sha1:5e68729fd9a17e9e4037abdffa52454a5c64f343</id>
<content type='text'>
Signed-off-by: Sven Strickroth &lt;email@cs-ware.de&gt;
Reviewed-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ab/gitweb-abbrev-links'</title>
<updated>2016-10-26T20:14:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-26T20:14:45Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5b941872d6003976ba4a1adc92bbc4de774661a8'/>
<id>urn:sha1:5b941872d6003976ba4a1adc92bbc4de774661a8</id>
<content type='text'>
In addition to purely abbreviated commit object names, "gitweb"
learned to turn "git describe" output (e.g. v2.9.3-599-g2376d31787)
into clickable links in its output.

* ab/gitweb-abbrev-links:
  gitweb: link to "git describe"'d commits in log messages
  gitweb: link to 7-char+ SHA-1s, not only 8-char+
  gitweb: fix a typo in a comment
</content>
</entry>
<entry>
<title>gitweb: link to "git describe"'d commits in log messages</title>
<updated>2016-10-14T20:22:55Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2016-10-06T09:11:35Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=cf5c7253e0f8d19bdb981a41b2552b28e3f6e0e3'/>
<id>urn:sha1:cf5c7253e0f8d19bdb981a41b2552b28e3f6e0e3</id>
<content type='text'>
Change the log formatting function to know about "git describe" output
such as "v2.8.0-4-g867ad08", in addition to just plain "867ad08".

There are still many valid refnames that we don't link to
e.g. v2.10.0-rc1~2^2~1 is also a valid way to refer to
v2.8.0-4-g867ad08, but I'm not supporting that with this commit,
similarly it's trivially possible to create some refnames like
"æ/var-gf6727b0" or which won't be picked up by this regex.

There's surely room for improvement here, but I just wanted to address
the very common case of sticking "git describe" output into commit
messages without trying to link to all possible refnames, that's going
to be a rather futile exercise given that this is free text, and it
would be prohibitively expensive to look up whether the references in
question exist in our repository.

There was on-list discussion about how we could do better than this
patch. Junio suggested to update parse_commits() to call a new
"gitweb--helper" command which would pass each of the revision
candidates through "rev-parse --verify --quiet". That would cut down
on our false positives (e.g. we'll link to "deadbeef"), and also allow
us to be more aggressive in selecting candidate revisions.

That may be too expensive to work in practice, or it may
not. Investigating that would be a good follow-up to this patch.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Acked-by: Jakub Narębski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: link to 7-char+ SHA-1s, not only 8-char+</title>
<updated>2016-10-14T20:22:51Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2016-10-06T09:11:34Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8059966cc41350188718257f5363d601a83aaee7'/>
<id>urn:sha1:8059966cc41350188718257f5363d601a83aaee7</id>
<content type='text'>
Change the minimum length of an abbreviated object identifier in the
commit message gitweb tries to turn into link from 8 hexchars to 7.

This arbitrary minimum length of 8 was introduced in bfe2191 ("gitweb:
SHA-1 in commit log message links to "object" view", 2006-12-10), but
the default abbreviation length is 7, and has been for a long time.

It's still possible to reference SHA-1s down to 4 characters in length,
see v1.7.4-1-gdce9648's MINIMUM_ABBREV, but I can't see how to make
git actually produce that, so I doubt anyone is putting that into log
messages in practice, but people definitely do put 7 character SHA-1s
into log messages.

I think it's fairly dubious to link to things matching [0-9a-fA-F]
here as opposed to just [0-9a-f], that dates back to the initial
version of gitweb from 161332a ("first working version",
2005-08-07). Git will accept all-caps SHA-1s, but didn't ever produce
them as far as I can tell.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Acked-by: Jakub Narębski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: fix a typo in a comment</title>
<updated>2016-10-14T20:22:31Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2016-10-06T09:11:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=26547bfb2b8098995b2a67770e96f29fafb11318'/>
<id>urn:sha1:26547bfb2b8098995b2a67770e96f29fafb11318</id>
<content type='text'>
Change a typo'd MIME type in a comment. The Content-Type is
application/xhtml+xml, not application/xhtm+xml.

Fixes up code originally added in 53c4031 ("gitweb: Strip
non-printable characters from syntax highlighter output", 2011-09-16).

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Acked-by: Jakub Narębski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: use highlight's shebang detection</title>
<updated>2016-09-25T23:39:11Z</updated>
<author>
<name>Ian Kelling</name>
<email>ian@iankelling.org</email>
</author>
<published>2016-09-24T22:32:58Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=779a20663230ab068dcbc3c5bc53d44a5e37b0aa'/>
<id>urn:sha1:779a20663230ab068dcbc3c5bc53d44a5e37b0aa</id>
<content type='text'>
The "highlight" binary can, in some cases, determine the language type
by the means of file contents, for example the shebang in the first line
for some scripting languages.  Make use of this autodetection for files
which syntax is not known by gitweb.  In that case, pass the blob
contents to "highlight --force"; the parameter is needed to make it
always generate HTML output (which includes HTML-escaping).

Although we now run highlight on files which do not end up highlighted,
performance is virtually unaffected because when we call highlight, it
is used for escaping HTML.  In the case that highlight is used, gitweb
calls sanitize() instead of esc_html(), and the latter is significantly
slower (it does more, being roughly a superset of sanitize()).  Simple
benchmark comparing performance of 'blob' view of files without syntax
highlighting in gitweb before and after this change indicates ±1%
difference in request time for all file types.  Benchmark was performed
on local instance on Debian, using Apache/2.4.23 web server and CGI.

Document the feature and improve syntax highlight documentation, add
test to ensure gitweb doesn't crash when language detection is used.

Signed-off-by: Ian Kelling &lt;ian@iankelling.org&gt;
Acked-by: Jakub Narębski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: remove unused guess_file_syntax() parameter</title>
<updated>2016-09-25T23:39:03Z</updated>
<author>
<name>Ian Kelling</name>
<email>ian@iankelling.org</email>
</author>
<published>2016-09-24T22:32:57Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c151aa3b58c952899531aa52e64d76b50fb52e62'/>
<id>urn:sha1:c151aa3b58c952899531aa52e64d76b50fb52e62</id>
<content type='text'>
Signed-off-by: Ian Kelling &lt;ian@iankelling.org&gt;
Acked-by: Jakub Narębski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
