Skip to content

Commit 7426eb7

Browse files
Junio C Hamanopaulusmack
authored andcommitted
[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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent e9937d2 commit 7426eb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ proc readrefs {} {
309309
foreach v {tagids idtags headids idheads otherrefids idotherrefs} {
310310
catch {unset $v}
311311
}
312-
set refd [open [list | git ls-remote [gitdir]] r]
312+
set refd [open [list | git show-ref] r]
313313
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 \
315315
match id path]} {
316316
continue
317317
}

0 commit comments

Comments
 (0)