]> Sergey Matveev's repositories - public-inbox.git/commit
www_coderepo: show tree root as "(root)"
authorEric Wong <e@80x24.org>
Tue, 10 Jan 2023 11:49:19 +0000 (11:49 +0000)
committerEric Wong <e@80x24.org>
Wed, 11 Jan 2023 04:41:16 +0000 (04:41 +0000)
commit3e29a9a80e6f940e8b8f7f6b92318793d5d30b90
treef2eb8670fe57786578cab72e73ec7fb79a252956
parent801fa47f85990ee8c9cd68dc3ebedc7f55cd486a
www_coderepo: show tree root as "(root)"

We'll use the `b=' parameter as a hint.  I originally considered
`b=/', but a singular slash `/' isn't used in git for paths.
$refname:$path resolution where $path is an empty string,
`git cat-file -t $refname:' resolves to the tree, so it seems
special-casing the empty string is fine in the web UI, too.
lib/PublicInbox/ViewVCS.pm