Skip to content

Commit 2e1ded4

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

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

gitk

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5196,6 +5196,24 @@ proc rereadrefs {} {
51965196
}
51975197
}
51985198

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+
51995217
proc showtag {tag isnew} {
52005218
global ctext tagcontents tagids linknum
52015219

0 commit comments

Comments
 (0)