Skip to content

Commit

Permalink
[PATCH] gitk: rereadrefs needs listrefs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano authored and Paul Mackerras committed Jun 11, 2006
1 parent 2d71bcc commit 2e1ded4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -5196,6 +5196,24 @@ proc rereadrefs {} {
}
}

proc listrefs {id} {
global idtags idheads idotherrefs

set x {}
if {[info exists idtags($id)]} {
set x $idtags($id)
}
set y {}
if {[info exists idheads($id)]} {
set y $idheads($id)
}
set z {}
if {[info exists idotherrefs($id)]} {
set z $idotherrefs($id)
}
return [list $x $y $z]
}

proc showtag {tag isnew} {
global ctext tagcontents tagids linknum

Expand Down

0 comments on commit 2e1ded4

Please sign in to comment.