diff options
author | Junio C Hamano <junkio@cox.net> | 2007-01-29 21:53:28 -0800 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-15 09:01:59 +1100 |
commit | 7426eb74694b2f8b3909065edeec35b7a9117b35 (patch) | |
tree | 862cc3e13c7586d43634c457919e52fc2f60b32e /gitk | |
parent | e9937d2a03a426b50a424927fbd0cdfbe2ac2b40 (diff) | |
download | git-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>
Diffstat (limited to 'gitk')
-rwxr-xr-x | gitk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |