Skip to content

Commit 9b5bdf5

Browse files
davvidgitster
authored andcommitted
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 <[email protected]> Suggested-by: Junio C Hamano <[email protected]> Signed-off-by: David Aguilar <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a135f21 commit 9b5bdf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10599,7 +10599,7 @@ proc movedhead {hid head} {
1059910599
}
1060010600

1060110601
proc changedrefs {} {
10602-
global cached_dheads cached_dtags cached_atags
10602+
global cached_dheads cached_dtags cached_atags tagcontents
1060310603
global arctags archeads arcnos arcout idheads idtags
1060410604

1060510605
foreach id [concat [array names idheads] [array names idtags]] {
@@ -10611,6 +10611,7 @@ proc changedrefs {} {
1061110611
}
1061210612
}
1061310613
}
10614+
catch {unset tagcontents}
1061410615
catch {unset cached_dtags}
1061510616
catch {unset cached_atags}
1061610617
catch {unset cached_dheads}

0 commit comments

Comments
 (0)