<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/gitweb.conf.txt, branch v2.30.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.30.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.30.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-09-09T18:05:52Z</updated>
<entry>
<title>gitweb.conf.txt: switch pluses to backticks to help Asciidoctor</title>
<updated>2019-09-09T18:05:52Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2019-09-07T14:12:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4414e837fcd9cc4e68e1540af04bb6db1533f302'/>
<id>urn:sha1:4414e837fcd9cc4e68e1540af04bb6db1533f302</id>
<content type='text'>
This paragraph uses a lot of +pluses+ to render text as monospace. That
works fine with AsciiDoc (8.6.10), and almost fine with Asciidoctor
(1.5.5), which renders the third of these literally ("+$projname+"). The
reason seems to be that Asciidoctor trips on the lone plus a bit
earlier, even though it is escaped.

Switch +$projname+ to `$projname`, and change the next, similar instance
too (+$projname/+), because otherwise, we'd trip on /that one/ instead.
If we would stop there, we would now start falling over on the escaped
plus ('\+') mentioned earlier, rendering /it/ literally. So change that
too...

In other words, unescape the lone '+' and change all the pluses that
follow it to backticks.

AsciiDoc renders this paragraph identically before and after this
commit, and Asciidoctor now renders this the same as AsciiDoc.

I did try to switch the whole paragraph to using backticks rather than
pluses. That worked great with Asciidoctor, but confused AsciiDoc...
Let's go with this rather surgical change instead.

Signed-off-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cb/doco-mono'</title>
<updated>2019-04-22T02:14:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-04-22T02:14:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6b42805445c3b5714c100ac066697943f2571fd3'/>
<id>urn:sha1:6b42805445c3b5714c100ac066697943f2571fd3</id>
<content type='text'>
Clean-up markup in the documentation suite.

* cb/doco-mono:
  doc: format pathnames and URLs as monospace.
  doc/CodingGuidelines: URLs and paths as monospace
</content>
</entry>
<entry>
<title>doc: format pathnames and URLs as monospace.</title>
<updated>2019-03-13T02:14:22Z</updated>
<author>
<name>Corentin BOMPARD</name>
<email>corentin.bompard@etu.univ-lyon1.fr</email>
</author>
<published>2019-03-06T13:04:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=68ed71b53cf7c58343306566fa6d527cb5fced41'/>
<id>urn:sha1:68ed71b53cf7c58343306566fa6d527cb5fced41</id>
<content type='text'>
Applying CodingGuidelines about monospace on pathnames and URLs.

See Documentation/CodingGuidelines.txt for more information.

Signed-off-by: Corentin BOMPARD &lt;corentin.bompard@etu.univ-lyon1.fr&gt;
Signed-off-by: Nathan BERBEZIER &lt;nathan.berbezier@etu.univ-lyon1.fr&gt;
Signed-off-by: Pablo CHABANNE &lt;pablo.chabanne@etu.univ-lyon1.fr&gt;
Signed-off-by: Matthieu MOY &lt;matthieu.moy@univ-lyon1.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: turn middle-of-line tabs into spaces</title>
<updated>2019-03-07T00:25:32Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2019-03-06T06:30:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8d75a1d183e2cbb4c56c14e59aeda64a87d86a34'/>
<id>urn:sha1:8d75a1d183e2cbb4c56c14e59aeda64a87d86a34</id>
<content type='text'>
These tabs happen to appear in columns where they don't stand out too
much, so the diff here is non-obvious. Some of these are rendered
differently by AsciiDoc and Asciidoctor (although the difference might
be invisible!), which is how I found a few of them. The remainder were
found using `git grep "[a-zA-Z.,)]$TAB[a-zA-Z]"`.

Signed-off-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'do/gitweb-strict-export-conf-doc'</title>
<updated>2019-01-14T23:29:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-01-14T23:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3dc50ccf7d5224b5f44108a07aa63e297f370e72'/>
<id>urn:sha1:3dc50ccf7d5224b5f44108a07aa63e297f370e72</id>
<content type='text'>
Doc update.

* do/gitweb-strict-export-conf-doc:
  docs: fix $strict_export text in gitweb.conf.txt
</content>
</entry>
<entry>
<title>docs: fix $strict_export text in gitweb.conf.txt</title>
<updated>2018-12-09T03:28:15Z</updated>
<author>
<name>Denis Ovsienko</name>
<email>denis@ovsienko.info</email>
</author>
<published>2018-12-06T13:10:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f116ee21cdacf5bf2c220464b65a9ca5452e4cae'/>
<id>urn:sha1:f116ee21cdacf5bf2c220464b65a9ca5452e4cae</id>
<content type='text'>
The section discusses $gitweb_export_ok and $gitweb_list, but gitweb
Perl code does not have such variables (this likely hangs over from
GITWEB_EXPORT_OK and GITWEB_LIST respectively). Fix the section to
spell $export_ok and $projects_list like the rest of the document.

Signed-off-by: Denis Ovsienko &lt;denis@ovsienko.info&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>docs/gitweb.conf: config variable typo</title>
<updated>2018-12-09T01:59:55Z</updated>
<author>
<name>Frank Dana</name>
<email>ferdnyc@gmail.com</email>
</author>
<published>2018-12-08T00:26:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=112ea42663c8cb01eb44b19f1461ec85fe03cf8c'/>
<id>urn:sha1:112ea42663c8cb01eb44b19f1461ec85fe03cf8c</id>
<content type='text'>
The documentation for the feature 'snapshot' claimed
"This feature can be configured on a per-repository basis via
repository's `gitweb.blame` configuration variable"

Fixed to specify `gitweb.snapshot` as the variable name.

Signed-off-by: Frank Dana &lt;ferdnyc@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: fix indentation of listing blocks in gitweb.conf.txt</title>
<updated>2018-10-23T03:23:09Z</updated>
<author>
<name>Andreas Heiduk</name>
<email>asheiduk@gmail.com</email>
</author>
<published>2018-10-22T20:45:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9aab3fcf23c8e0079bec61f356934d596e46948c'/>
<id>urn:sha1:9aab3fcf23c8e0079bec61f356934d596e46948c</id>
<content type='text'>
'gitweb.conf.txt' uses inconsistent indentation in listing blocks and a mix
of listing blocks and literal paragraphs. Both didn't look pretty in the
rendered HTML page.

Signed-off-by: Andreas Heiduk &lt;asheiduk@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: use https links to avoid http redirect</title>
<updated>2017-04-21T05:05:37Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-04-20T20:32:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e52a53df38af37cc32d641bfdeaa43ceb8277eef'/>
<id>urn:sha1:e52a53df38af37cc32d641bfdeaa43ceb8277eef</id>
<content type='text'>
Many sites these days unconditionally redirect http requests
to their https equivalents. Let's make our links https in
the first place to save the client a redirect.

Signed-off-by: Jeff King &lt;peff@peff.net&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://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>
</feed>
