]> Lady’s Gitweb - Gitweb/commit
gitweb: Use git-show-ref instead of git-peek-remote
authorJakub Narebski <redacted>
Sat, 25 Nov 2006 10:32:08 +0000 (11:32 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commitc39d459fa4114fe3f7d861b3e7a441084a1cccaa41d79168de75e96987370c99
tree34c9159e775c74b5e1bd0117fafafba16c31dfe52c00765221ac22560e966498
parent746ac487cd30accb26e417618a68e5c2abfde800fff65af72c9d75730f6a4a96
gitweb: Use git-show-ref instead of git-peek-remote

Use "git show-ref --dereference" instead of "git peek-remote
$projectroot/project" in git_get_references. git-show-ref is faster
than git-peek-remote (40ms vs 56ms user+sys for git.git repository);
even faster is reading info/refs file (if it exists), but the
information in info/refs can be stale; that and the fact that
info/refs is meant for dumb protocol transports, not for gitweb.

git-show-ref is available since v1.4.4; the output format is slightly
different than git-peek-remote output format, but we accept both.

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