]> Lady’s Gitweb - Gitweb/commit
gitweb: Do not parse refs by hand, use git-peek-remote instead
authorJakub Narebski <redacted>
Fri, 15 Sep 2006 01:43:28 +0000 (03:43 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
commita02d71e36c9ca9698b668ab21ba4ede3f34d8a341e2ccc087441e9b025c0be76
treec0fbf54fd80fd83e2163b1e14dc87ffb653e445ed5e0b2e658178db7f92ca11b
parent3232913ca700aa8fd605f529be35de382fb8e4d085e7eec5d9959459a6249a72
gitweb: Do not parse refs by hand, use git-peek-remote instead

This is in response to Linus's work on packed refs. Additionally it
makes gitweb work with symrefs, too.

Do not parse refs by hand, using File::Find and reading individual
heads to get hash of reference, but use git-peek-remote output
instead.  Assume that the hash for deref (with ^{}) always follows hash
for ref, and that we have derefs only for tag objects; this removes
call to git_get_type (and git-cat-file -t invocation) for tags, which
speeds "summary" and "tags" views generation, but might slow generation
of "heads" view a bit.  For now, we do not save and use the deref hash.

Remove git_get_hash_by_ref while at it, as git_get_refs_list was the
only place it was used.

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