]> Lady’s Gitweb - Gitweb/commit
gitweb: disambiguate heads and tags withs the same name
authorJakub Narebski <redacted>
Sat, 15 Dec 2007 14:40:28 +0000 (15:40 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:12 +0000 (00:07 -0400)
commit694f04e3f03d64419c3a32c9e7ad3ddaa3533c2f4613dd3a1b8eb9b52be6ba6d
tree74cfeacb3fd482ab2e6aaeef0fd00b950fb7e24443eb5d7d0eef773f85f3fc9b
parentaab9614336a9af3e4f453e35812b5d48269f2e7c39ba05d55f235bb05dc5d649
gitweb: disambiguate heads and tags withs the same name

Avoid wrong disambiguation that would link logs/trees of tags and
heads which share the same name to the same page, leading to
a disambiguation that would prefer the tag, thus making it impossible
to access the corresponding head log and tree without hacking the url
by hand.

It does it by using full refname (with 'refs/heads/' or 'refs/tags/'
prefix) instead of shortened one in the URLs in 'heads' and 'tags'
tables.  This makes URLs (and refs) provided by gitweb unambiguous.

Signed-off-by: Guillaume Seguin <redacted>
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.232864 seconds and 4 git commands to generate.