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>
Junio C Hamano committed
Jan 29, 2007 at 21:53 UTC
0f57a31b4c7f8784b70535681a669b7746f38f1c
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
}