aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-29 21:53:28 -0800
committerPaul Mackerras <paulus@samba.org>2007-02-15 09:01:59 +1100
commit7426eb74694b2f8b3909065edeec35b7a9117b35 (patch)
tree862cc3e13c7586d43634c457919e52fc2f60b32e
parente9937d2a03a426b50a424927fbd0cdfbe2ac2b40 (diff)
downloadgit-7426eb74694b2f8b3909065edeec35b7a9117b35.tar.gz
git-7426eb74694b2f8b3909065edeec35b7a9117b35.tar.xz
[PATCH] gitk: Use show-ref instead of ls-remote
It used to be ls-remote on self was the only easy way to grab the ref information. Now we have show-ref which does not involve fork and IPC, so use it. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitk b/gitk
index 8132812b5..1c36235bf 100755
--- a/gitk
+++ b/gitk
@@ -309,9 +309,9 @@ proc readrefs {} {
foreach v {tagids idtags headids idheads otherrefids idotherrefs} {
catch {unset $v}
}
- set refd [open [list | git ls-remote [gitdir]] r]
+ set refd [open [list | git show-ref] r]
while {0 <= [set n [gets $refd line]]} {
- if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \
+ if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \
match id path]} {
continue
}