Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitk: Use show-ref instead of ls-remote
author
Junio C Hamano
<junkio@cox.net>
Tue, 30 Jan 2007 05:53:28 +0000
(21:53 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 6 Feb 2007 01:14:15 +0000
(17:14 -0800)
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>
gitk
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
3468e71
)
diff --git
a/gitk
b/gitk
index 8132812b50cc7d387cf762851387c8dafff7e7b7..1c36235bff8c127faa60eca051f15f35fb14f484 100755
(executable)
--- 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
}