summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2012-09-08 19:03:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-09-09 03:25:09 (GMT)
commit9b5bdf5913f850d1fc72c4219f794e2de549957f (patch)
treec72ed7bdd43ba4ddfb46a04065b60e6c5cb62dc0 /gitk
parenta135f214e371311f13807da637d492fd9642a2e3 (diff)
downloadgit-9b5bdf5913f850d1fc72c4219f794e2de549957f.zip
git-9b5bdf5913f850d1fc72c4219f794e2de549957f.tar.gz
git-9b5bdf5913f850d1fc72c4219f794e2de549957f.tar.bz2
gitk: Teach "Reread references" to reload tags
Tag contents, once read, are forever cached in memory. This makes gitk unable to notice when tag contents change. Allow users to cause a reload of the tag contents by using the "File->Reread references" action. Reported-by: Tim McCormack <cortex@brainonfire.net> Suggested-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitk b/gitk
index 9bba9aa..a124822 100755
--- a/gitk
+++ b/gitk
@@ -10599,7 +10599,7 @@ proc movedhead {hid head} {
}
proc changedrefs {} {
- global cached_dheads cached_dtags cached_atags
+ global cached_dheads cached_dtags cached_atags tagcontents
global arctags archeads arcnos arcout idheads idtags
foreach id [concat [array names idheads] [array names idtags]] {
@@ -10611,6 +10611,7 @@ proc changedrefs {} {
}
}
}
+ catch {unset tagcontents}
catch {unset cached_dtags}
catch {unset cached_atags}
catch {unset cached_dheads}