summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-13 17:53:41 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-13 17:53:41 (GMT)
commitb642d9ef643371990c0a921836f2a074d48ce1b3 (patch)
tree8ee76018326716478b33738cf184208c48b621b6
parent41292ddd37202ff6dce34986c87a6000c5d3fbfa (diff)
parent2e1ded44f709ddc95c5e8a87e0d98127979115fe (diff)
downloadgit-b642d9ef643371990c0a921836f2a074d48ce1b3.zip
git-b642d9ef643371990c0a921836f2a074d48ce1b3.tar.gz
git-b642d9ef643371990c0a921836f2a074d48ce1b3.tar.bz2
Merge git://git.kernel.org/pub/scm/gitk/gitk
* git://git.kernel.org/pub/scm/gitk/gitk: [PATCH] gitk: rereadrefs needs listrefs
-rwxr-xr-xgitk18
1 files changed, 18 insertions, 0 deletions
diff --git a/gitk b/gitk
index 9be10a4..ba4644f 100755
--- a/gitk
+++ b/gitk
@@ -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