mirror of
https://github.com/git/git.git
synced 2025-03-24 03:09:53 +00:00
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>
This commit is contained in:
parent
a135f214e3
commit
9b5bdf5913
3
gitk
3
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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user