author | Jakub Narebski <jnareb@gmail.com> | |
Sat, 25 Nov 2006 10:32:08 +0000 (11:32 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 25 Nov 2006 21:54:32 +0000 (13:54 -0800) | ||
commit | 28b9d9f7c67cfd199c4bc9e1ac5197cb17349b15 | |
tree | 5093a64f11eec789441d924f0b55991829365fe0 | tree | snapshot |
parent | 391862e34571c0e7e88a5f6e84211b7b8bf55440 | commit | diff |
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | diff | blob | history |