<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit, branch ch/for-jason</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/?h=ch%2Ffor-jason</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/?h=ch%2Ffor-jason'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2026-05-21T13:31:21Z</updated>
<entry>
<title>cgit: Fix guessing default branch</title>
<updated>2026-05-21T13:31:21Z</updated>
<author>
<name>Baptiste Jonglez</name>
<email>git@bitsofnetworks.org</email>
</author>
<published>2026-02-27T15:51:11Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=c9f91124f9462d8eeb0a9d2ddeff586807413fc0'/>
<id>urn:sha1:c9f91124f9462d8eeb0a9d2ddeff586807413fc0</id>
<content type='text'>
Even when HEAD is set to "main" in a repository, cgit still uses the
"master" branch to detect the age of the last commit.

Example:

    $ cat repositories/openwrt/openwrt.git/HEAD
    ref: refs/heads/main

    $ stat repositories/openwrt/openwrt.git/refs/heads/master
    Modify: 2024-02-22 23:00:01.285731731 +0000

    $ stat repositories/openwrt/openwrt.git/refs/heads/main
    Modify: 2026-02-27 15:33:49.506017172 +0000

In this situation, cgit displays "25 months" for this repository on the index page.

I guess the internal format for HEAD has changed at some point, so it
needs to be taken into account when parsing it in cgit.

Signed-off-by: Baptiste Jonglez &lt;git@bitsofnetworks.org&gt;
</content>
</entry>
<entry>
<title>ui-shared: add "this commit" option to switch form</title>
<updated>2026-05-21T13:27:10Z</updated>
<author>
<name>Alyssa Ross</name>
<email>hi@alyssa.is</email>
</author>
<published>2026-05-21T12:17:50Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=55f8359c0b18e6f2c182fd14132d1d58fb39b6d1'/>
<id>urn:sha1:55f8359c0b18e6f2c182fd14132d1d58fb39b6d1</id>
<content type='text'>
Branches are grouped into their own section to make the "this commit"
option visually distinct.

Adding this option will result in two options being marked as selected
if a branch has the same name as a commit oid.  But that would cause
all sorts of other problems anyway (attempting to switch to the branch
would actually give you the commit, etc.), so let's not worry about
that.

A "permalink" link on the blob view next to the "plain" link would
probably be more discoverable, but that would only work for the blob
view.  The switch UI is visible everywhere.

Signed-off-by: Alyssa Ross &lt;hi@alyssa.is&gt;
</content>
</entry>
<entry>
<title>use buffered stdio</title>
<updated>2026-05-21T13:27:06Z</updated>
<author>
<name>Eric Wong</name>
<email>e@80x24.org</email>
</author>
<published>2026-05-21T13:11:10Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=1cd637cd1f637aa8aa1c2d416ae01ee31b3a691c'/>
<id>urn:sha1:1cd637cd1f637aa8aa1c2d416ae01ee31b3a691c</id>
<content type='text'>
Our generation of HTML triggers many small write(2) syscalls
which is inefficient.

Time output on a horrible query against my git.git mirror
shows significant performance improvement:

QUERY_STRING='id=2b93bfac0f5bcabbf60f174f4e7bfa9e318e64d5&amp;id2=d6da71a9d16b8cf27f9d8f90692d3625c849cbc8'
PATH_INFO=/mirrors/git.git/diff
export QUERY_STRING PATH_INFO
time ./cgit &gt;/dev/null

Before:
real    0m1.585s
user    0m0.904s
sys     0m0.658s

After:
real    0m0.750s
user    0m0.666s
sys     0m0.076s

Signed-off-by: Eric Wong &lt;e@80x24.org&gt;
Signed-off-by: Alyssa Ross &lt;hi@alyssa.is&gt;
</content>
</entry>
<entry>
<title>ui-log: improve decoration display for browsers without CSS</title>
<updated>2026-05-21T13:26:55Z</updated>
<author>
<name>Eric Wong</name>
<email>e@80x24.org</email>
</author>
<published>2026-05-21T13:04:30Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=0f782947ed10ba7341d95fcf3de5095c3dc2ef8c'/>
<id>urn:sha1:0f782947ed10ba7341d95fcf3de5095c3dc2ef8c</id>
<content type='text'>
Text-based browsers without CSS support show all the decorations
bunched together without spacing.  Rely on a whitespace instead
of CSS support.
</content>
</entry>
<entry>
<title>steal kernel.org's libravatar lua</title>
<updated>2026-05-05T04:41:23Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-03-19T08:58:41Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=1854c18658707741c5bf0b5eaca554e083a3729b'/>
<id>urn:sha1:1854c18658707741c5bf0b5eaca554e083a3729b</id>
<content type='text'>
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-tree: add about link in tree view list</title>
<updated>2026-05-05T04:41:23Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2019-01-02T08:20:40Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=4c037918a2aab30e47cacfe1b296a7927137ace4'/>
<id>urn:sha1:4c037918a2aab30e47cacfe1b296a7927137ace4</id>
<content type='text'>
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-tree: provide link to about page for pretty formatting</title>
<updated>2026-05-05T04:41:23Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2018-12-28T23:13:54Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=f1861553f3bfd48f4fc1559b23a5cc1b0cc7bda2'/>
<id>urn:sha1:f1861553f3bfd48f4fc1559b23a5cc1b0cc7bda2</id>
<content type='text'>
We have an ongoing discussion about display filters and pretty
formatting in tree view. How about providing a link to about page
for pretty formatting?

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-log: build ellipsis from bullets</title>
<updated>2026-05-05T04:41:23Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2024-10-16T09:59:42Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=8c1d1cd5dee361084e28e7561e903eb5fbf5a544'/>
<id>urn:sha1:8c1d1cd5dee361084e28e7561e903eb5fbf5a544</id>
<content type='text'>
These look cleaner... IMHO. 😜

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-log: show commit message in tooltip</title>
<updated>2026-05-05T04:41:23Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2024-08-04T22:25:49Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=c829e631ded662d70fc843b8b83eb7b5d9872cd3'/>
<id>urn:sha1:c829e631ded662d70fc843b8b83eb7b5d9872cd3</id>
<content type='text'>
... now that we have the ellipsis to indicate it is available.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-log: show ellipsis if detailed commit message is available</title>
<updated>2026-05-05T04:41:23Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2022-12-16T17:37:10Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=a42071e287f3fbf24c1010170f1aaff4781567b6'/>
<id>urn:sha1:a42071e287f3fbf24c1010170f1aaff4781567b6</id>
<content type='text'>
The existence of a detailed commit message may be of interst even
if only the subject is shown by default.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
</feed>
