From: David Aguilar Date: Sat, 8 Sep 2012 19:03:13 +0000 (-0700) Subject: gitk: Teach "Reread references" to reload tags X-Git-Tag: v1.7.11.7~4^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9b5bdf5913f850d1fc72c4219f794e2de549957f?ds=sidebyside 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 Suggested-by: Junio C Hamano Signed-off-by: David Aguilar Signed-off-by: Junio C Hamano --- diff --git a/gitk b/gitk index 9bba9aa8d1..a124822626 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}