[PATCH] gitk: rereadrefs needs listrefs
The listrefs procedure was inadvertently removed during the course of development, but there is still a user of it, so resurrect it. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Junio C Hamano committed
Jun 11, 2006 at 09:50 UTC
2e1ded44f709ddc95c5e8a87e0d98127979115fe
1 file changed
+18
gitk
+18
@@ -5196,6 +5196,24 @@ proc rereadrefs {} {
5196
}
5197
}
5198
5199
+proc listrefs {id} {
5200
+ global idtags idheads idotherrefs
5201
+
5202
+ set x {}
5203
+ if {[info exists idtags($id)]} {
5204
+ set x $idtags($id)
5205
+ }
5206
+ set y {}
5207
+ if {[info exists idheads($id)]} {
5208
+ set y $idheads($id)
5209
+ }
5210
+ set z {}
5211
+ if {[info exists idotherrefs($id)]} {
5212
+ set z $idotherrefs($id)
5213
+ }
5214
+ return [list $x $y $z]
5215
+}
5216
+
5217
proc showtag {tag isnew} {
5218
global ctext tagcontents tagids linknum
5219