<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/gitweb/gitweb.perl, branch v2.41.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.41.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.41.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-07-27T06:33:17Z</updated>
<entry>
<title>gitweb: remove title shortening heuristics</title>
<updated>2022-07-27T06:33:17Z</updated>
<author>
<name>Julien Rouhaud</name>
<email>julien.rouhaud@free.fr</email>
</author>
<published>2022-07-26T13:59:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=75707da4fa4105c174017d079786e5bba79a96f6'/>
<id>urn:sha1:75707da4fa4105c174017d079786e5bba79a96f6</id>
<content type='text'>
Those heuristics are way outdated and too specific to the kernel project
to be useful outside of kernel.org.  Since kernel.org doesn't use gitweb
anymore and at least one project complained about incorrect behavior,
entirely remove them.

Signed-off-by: Julien Rouhaud &lt;julien.rouhaud@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: switch to an XHTML5 DOCTYPE</title>
<updated>2022-06-02T18:51:15Z</updated>
<author>
<name>Jason Yundt</name>
<email>jason@jasonyundt.email</email>
</author>
<published>2022-06-02T11:43:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0e1a85ca7558a9ec6f2e708dcc106c455a50776d'/>
<id>urn:sha1:0e1a85ca7558a9ec6f2e708dcc106c455a50776d</id>
<content type='text'>
According to the HTML Standard FAQ:

	“What is the DOCTYPE for modern HTML documents?

	In text/html documents:

		&lt;!DOCTYPE html&gt;

	In documents delivered with an XML media type: no DOCTYPE is required
	and its use is generally unnecessary. However, you may use one if you
	want (see the following question). Note that the above is well-formed
	XML.”

	Source: [1]

Gitweb uses an XHTML 1.0 DOCTYPE:

	&lt;!DOCTYPE html PUBLIC
	"-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;

While that DOCTYPE is still valid [2], it has several disadvantages:

1. It’s misleading. If an XML parser uses the DTD at the given link,
   then the entities &amp;nbsp; and &amp;sdot; won’t get declared. Instead, the
   parser has to use a DTD from the HTML Standard that has nothing to do
   with XHTML 1.0 [2].
2. It’s obsolete. XHTML 1.0 was last revised in 2002 and was superseded in
   2018 [3].
3. It’s unreliable. Gitweb uses &amp;nbsp; and &amp;sdot; but lets an external file
   define them. “[…U]using entity references for characters in XML documents
   is unsafe if they are defined in an external file (except for &amp;lt;, &amp;gt;,
   &amp;amp;, &amp;quot;, and &amp;apos;).” [4]

[1]: &lt;https://github.com/whatwg/html/blob/main/FAQ.md#what-is-the-doctype-for-modern-html-documents&gt;
[2]: &lt;https://html.spec.whatwg.org/multipage/xhtml.html#parsing-xhtml-documents&gt;
[3]: &lt;https://www.w3.org/TR/xhtml1/#xhtml&gt;
[4]: &lt;https://html.spec.whatwg.org/multipage/xhtml.html#writing-xhtml-documents&gt;

Signed-off-by: Jason Yundt &lt;jason@jasonyundt.email&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: remove invalid http-equiv="content-type"</title>
<updated>2022-03-08T18:10:16Z</updated>
<author>
<name>Jason Yundt</name>
<email>jason@jasonyundt.email</email>
</author>
<published>2022-03-08T15:56:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a262585d813482c06bf121ad41377f29eadd2bc1'/>
<id>urn:sha1:a262585d813482c06bf121ad41377f29eadd2bc1</id>
<content type='text'>
Before this change, gitweb would generate pages which included:

	&lt;meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/&gt;

When a meta's http-equiv equals "content-type", the http-equiv is said
to be in the "Encoding declaration state". According to the HTML
Standard,

	The Encoding declaration state may be used in HTML documents,
	but elements with an http-equiv attribute in that state must not
	be used in XML documents.

	Source: &lt;https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv-content-type&gt;

This change removes that meta element since gitweb always generates XML
documents.

Signed-off-by: Jason Yundt &lt;jason@jasonyundt.email&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'gh/gitweb-branch-sort'</title>
<updated>2021-09-10T18:46:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-09-10T18:46:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9762646ee42b775139b4d519d090808cbdd3bdeb'/>
<id>urn:sha1:9762646ee42b775139b4d519d090808cbdd3bdeb</id>
<content type='text'>
Tie-break branches that point at the same object in the list of
branches on GitWeb to show the one pointed at by HEAD early.

* gh/gitweb-branch-sort:
  gitweb: use HEAD as secondary sort key in git_get_heads_list()
</content>
</entry>
<entry>
<title>gitweb: use HEAD as secondary sort key in git_get_heads_list()</title>
<updated>2021-06-10T00:49:20Z</updated>
<author>
<name>Greg Hurrell</name>
<email>greg@hurrell.net</email>
</author>
<published>2021-06-09T19:28:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a45e390ad6ad1f26967a40e7771777f70a77d719'/>
<id>urn:sha1:a45e390ad6ad1f26967a40e7771777f70a77d719</id>
<content type='text'>
The "heads" section on the gitweb summary page shows heads in
`-committerdate` order (ie. the most recently-modified ones at the
top), tie-breaking equal-dated refs using the implicit `refname` sort
fallback. This recency-based ordering appears in multiple places in the
UI, such as the project listing, the tags list, and even the
shortlog and log views.

Given two equal-dated refs, however, sorting the `HEAD` ref before
the non-`HEAD` ref provides more useful signal than merely sorting by
refname. For example, say we had "master" and "trunk" both pointing at
the same commit but "trunk" was `HEAD`, sorting "trunk" first helps
communicate its special status as the default branch that you'll check
out if you clone the repo.

Add `-HEAD` as a secondary sort key to the `git for-each-ref` call
in `git_get_heads_list()` to provide the desired behavior. The most
recently committed refs will appear first, but `HEAD`-ness will be used
as a tie-breaker. Note that `refname` is the implicit fallback sort key,
which means that two same-dated non-`HEAD` refs will continue to be
sorted in lexicographical order, as they are today.

Signed-off-by: Greg Hurrell &lt;greg@hurrell.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: add "e-mail privacy" feature to redact e-mail addresses</title>
<updated>2021-04-08T22:54:26Z</updated>
<author>
<name>Georgios Kontaxis</name>
<email>geko1702+commits@99rst.org</email>
</author>
<published>2021-03-28T23:26:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0996dd3d6dbcc132cf212f3420b89947fd9cc2ba'/>
<id>urn:sha1:0996dd3d6dbcc132cf212f3420b89947fd9cc2ba</id>
<content type='text'>
Gitweb extracts content from the Git log and makes it accessible
over HTTP. As a result, e-mail addresses found in commits are
exposed to web crawlers and they may not respect robots.txt.
This can result in unsolicited messages.

Introduce an 'email-privacy' feature which redacts e-mail addresses
from the generated HTML content. Specifically, obscure addresses
retrieved from the the author/committer and comment sections of the
Git log. The feature is off by default.

This feature does not prevent someone from downloading the
unredacted commit log, e.g., by cloning the repository, and
extracting information from it. It aims to hinder the low-
effort, bulk collection of e-mail addresses by web crawlers.

Signed-off-by: Georgios Kontaxis &lt;geko1702+commits@99rst.org&gt;
Acked-by: Eric Wong &lt;e@80x24.org&gt;
Acked-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 'eb/gitweb-more-trailers'</title>
<updated>2020-05-01T20:39:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-05-01T20:39:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=49349e988318d4bdf89b8c9a03916533bede4b8b'/>
<id>urn:sha1:49349e988318d4bdf89b8c9a03916533bede4b8b</id>
<content type='text'>
Gitweb updates.

* eb/gitweb-more-trailers:
  gitweb: Recognize *-to and Closes/Fixes trailers
</content>
</entry>
<entry>
<title>gitweb: Recognize *-to and Closes/Fixes trailers</title>
<updated>2020-04-25T05:19:04Z</updated>
<author>
<name>Emma Brooks</name>
<email>me@pluvano.com</email>
</author>
<published>2020-04-25T02:17:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4d9378bfad4a283d5e06fbbeba80b5db6be73bc4'/>
<id>urn:sha1:4d9378bfad4a283d5e06fbbeba80b5db6be73bc4</id>
<content type='text'>
Commit trailers like "Thanks-to:", "Fixes:", and "Closes:" are fairly
common, but gitweb didn't highlight them like other trailers.

Signed-off-by: Emma Brooks &lt;me@pluvano.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: fix UTF-8 encoding when using CGI::Fast</title>
<updated>2020-03-29T16:06:51Z</updated>
<author>
<name>Julien Moutinho</name>
<email>julm+git@sourcephile.fr</email>
</author>
<published>2020-03-29T00:20:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ecfcdecc612505291cfdffb886b5d7615c3e581'/>
<id>urn:sha1:2ecfcdecc612505291cfdffb886b5d7615c3e581</id>
<content type='text'>
FCGI streams are implemented using the older stream API: TIEHANDLE,
therefore applying PerlIO layers using binmode() has no effect to them.
The solution in this patch is to redefine the FCGI::Stream::PRINT function
to use UTF-8 as output encoding, except within git_blob_plain() and git_snapshot()
which must still output in raw binary mode.

This problem and solution were previously reported back in 2012:
- http://git.661346.n2.nabble.com/Gitweb-running-as-FCGI-does-not-print-its-output-in-UTF-8-td7573415.html
- http://stackoverflow.com/questions/5005104

Signed-off-by: Julien Moutinho &lt;julm+git@sourcephile.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'do/gitweb-typofix-in-comments'</title>
<updated>2020-01-08T20:44:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-01-08T20:44:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c5dc20638baf54c43092ee676e0692cba954b194'/>
<id>urn:sha1:c5dc20638baf54c43092ee676e0692cba954b194</id>
<content type='text'>
Typofix.

* do/gitweb-typofix-in-comments:
  gitweb: fix a couple spelling errors in comments
</content>
</entry>
</feed>
