diff options
author | Paul Mackerras <paulus@samba.org> | 2006-06-07 09:19:45 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-07 09:19:45 +1000 |
commit | 2d71bcccc81e3569d97dd1314c3ca0f080f4a70f (patch) | |
tree | 52390a4d159d1b9ffd9757ac39fb12e9619fadca | |
parent | gitk: Show branch name(s) as well, if "show nearby tags" is enabled (diff) | |
download | tgif-2d71bcccc81e3569d97dd1314c3ca0f080f4a70f.tar.xz |
gitk: Re-read the descendent/ancestor tag & head info on update
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-x | gitk | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -238,6 +238,7 @@ proc updatecommits {} { catch {unset selectedline} catch {unset thickerline} catch {unset viewdata($n)} + discardallcommits readrefs showview $n } @@ -4988,15 +4989,30 @@ proc wrcomcan {} { # Stuff for finding nearby tags proc getallcommits {} { - global allcstart allcommits + global allcstart allcommits allcfd set fd [open [concat | git rev-list --all --topo-order --parents] r] + set allcfd $fd fconfigure $fd -blocking 0 set allcommits "reading" nowbusy allcommits restartgetall $fd } +proc discardallcommits {} { + global allparents allchildren allcommits allcfd + global desc_tags anc_tags alldtags tagisdesc allids desc_heads + + if {![info exists allcommits]} return + if {$allcommits eq "reading"} { + catch {close $allcfd} + } + foreach v {allcommits allchildren allparents allids desc_tags anc_tags + alldtags tagisdesc desc_heads} { + catch {unset $v} + } +} + proc restartgetall {fd} { global allcstart |