<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/gitweb/gitweb.perl, branch v2.45.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.45.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.45.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-01-26T16:54:46Z</updated>
<entry>
<title>Merge branch 'mj/gitweb-unreadable-config-error'</title>
<updated>2024-01-26T16:54:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-01-26T16:54:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b700f119d183423916be7b8b0a2d48970cdf20e5'/>
<id>urn:sha1:b700f119d183423916be7b8b0a2d48970cdf20e5</id>
<content type='text'>
When given an existing but unreadable file as a configuration file,
gitweb behaved as if the file did not exist at all, but now it
errors out.  This is a change that may break backward compatibility.

* mj/gitweb-unreadable-config-error:
  gitweb: die when a configuration file cannot be read
</content>
</entry>
<entry>
<title>gitweb: die when a configuration file cannot be read</title>
<updated>2024-01-11T00:08:21Z</updated>
<author>
<name>Marcelo Roberto Jimenez</name>
<email>marcelo.jimenez@gmail.com</email>
</author>
<published>2024-01-10T22:57:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ac62a3649fcfd7f2caa80ffdfb8c3135764291ef'/>
<id>urn:sha1:ac62a3649fcfd7f2caa80ffdfb8c3135764291ef</id>
<content type='text'>
Fix a possibility of a permission to access error go unnoticed.

Perl uses two different variables to manage errors from a "do
$filename" construct. One is $@, which is set in this case when do
is unable to compile the file. The other is $!, which is set in case
do cannot read the file.  The current code only checks "$@", which
means a configuration file passed to GitWeb that is not readable by
the server process does not cause it to "die".

Make sure we also check and act on "$!" to fix this.

Signed-off-by: Marcelo Roberto Jimenez &lt;marcelo.jimenez@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/update-urls-in-doc-and-comment'</title>
<updated>2023-12-18T22:10:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-12-18T22:10:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ec5ab1482d3373052784ae5c49d96d8b5cdd139d'/>
<id>urn:sha1:ec5ab1482d3373052784ae5c49d96d8b5cdd139d</id>
<content type='text'>
Stale URLs have been updated to their current counterparts (or
archive.org) and HTTP links are replaced with working HTTPS links.

* js/update-urls-in-doc-and-comment:
  doc: refer to internet archive
  doc: update links for andre-simon.de
  doc: switch links to https
  doc: update links to current pages
</content>
</entry>
<entry>
<title>doc: refer to internet archive</title>
<updated>2023-11-26T01:07:06Z</updated>
<author>
<name>Josh Soref</name>
<email>jsoref@gmail.com</email>
</author>
<published>2023-11-24T03:35:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=62b4f7b9c6a767cfa9eb3efa96e65305f98386be'/>
<id>urn:sha1:62b4f7b9c6a767cfa9eb3efa96e65305f98386be</id>
<content type='text'>
These pages are no longer reachable from their original locations,
which makes things difficult for readers. Instead, switch to linking to
the Internet Archive for the content.

Signed-off-by: Josh Soref &lt;jsoref@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: update links for andre-simon.de</title>
<updated>2023-11-26T01:07:05Z</updated>
<author>
<name>Josh Soref</name>
<email>jsoref@gmail.com</email>
</author>
<published>2023-11-24T03:35:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=28a0c65f5db0ca5124b405f99f4edf9322dbc7d3'/>
<id>urn:sha1:28a0c65f5db0ca5124b405f99f4edf9322dbc7d3</id>
<content type='text'>
Beyond the fact that it's somewhat traditional to respect sites'
self-identification, it's helpful for links to point to the things
that people expect them to reference. Here that means linking to
specific pages instead of a domain.

Signed-off-by: Josh Soref &lt;jsoref@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: switch links to https</title>
<updated>2023-11-26T01:07:05Z</updated>
<author>
<name>Josh Soref</name>
<email>jsoref@gmail.com</email>
</author>
<published>2023-11-24T03:35:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d05b08cd52cfda627f1d865bdfe6040a2c9521b5'/>
<id>urn:sha1:d05b08cd52cfda627f1d865bdfe6040a2c9521b5</id>
<content type='text'>
These sites offer https versions of their content.
Using the https versions provides some protection for users.

Signed-off-by: Josh Soref &lt;jsoref@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>perl: bump the required Perl version to 5.8.1 from 5.8.0</title>
<updated>2023-11-16T22:26:32Z</updated>
<author>
<name>Todd Zullinger</name>
<email>tmz@pobox.com</email>
</author>
<published>2023-11-16T19:30:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d13a73e383076636534e10ba799af0c9a2b85357'/>
<id>urn:sha1:d13a73e383076636534e10ba799af0c9a2b85357</id>
<content type='text'>
The following commit will make use of a Getopt::Long feature which is
only present in Perl &gt;= 5.8.1.  Document that as the minimum version we
support.

Many of our Perl scripts will continue to run with 5.8.0 but this change
allows us to adjust them as needed without breaking any promises to our
users.

The Perl requirement was last changed in d48b284183 (perl: bump the
required Perl version to 5.8 from 5.6.[21], 2010-09-24).  At that time,
5.8.0 was 8 years old.  It is now over 21 years old.

Signed-off-by: Todd Zullinger &lt;tmz@pobox.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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>
</feed>
