@matheusbsbs / matheus-bagliano / commits / 7426eb7469
Fork 0

[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>

Junio C Hamano committed Jan 29, 2007 at 21:53 UTC 7426eb74694b2f8b3909065edeec35b7a9117b35
1 file changed +2 -2
gitk
+2 -2
@@ -309,9 +309,9 @@ proc readrefs {} {
309 foreach v {tagids idtags headids idheads otherrefids idotherrefs} {
310 catch {unset $v}
311 }
312 - set refd [open [list | git ls-remote [gitdir]] r]
312 + set refd [open [list | git show-ref] r]
313 while {0 <= [set n [gets $refd line]]} {
314 - if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \
314 + if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \
315 match id path]} {
316 continue
317 }