From: Junio C Hamano Date: Tue, 30 Jan 2007 05:53:28 +0000 (-0800) Subject: [PATCH] gitk: Use show-ref instead of ls-remote X-Git-Tag: v1.5.0.1~4^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7426eb74694b2f8b3909065edeec35b7a9117b35;p=git.git [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 Signed-off-by: Paul Mackerras --- 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 }