Skip to content

Commit

Permalink
gitk: Re-read the descendent/ancestor tag & head info on update
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Jun 6, 2006
1 parent ef030b8 commit 2d71bcc
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ proc updatecommits {} {
catch {unset selectedline}
catch {unset thickerline}
catch {unset viewdata($n)}
discardallcommits
readrefs
showview $n
}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 2d71bcc

Please sign in to comment.