summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7fcc92b)
raw | patch | inline | side by side (parent: 7fcc92b)
author | Paul Mackerras <paulus@samba.org> | |
Thu, 6 Dec 2007 09:50:31 +0000 (20:50 +1100) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Thu, 6 Dec 2007 09:50:31 +0000 (20:50 +1100) |
We weren't setting vtokmod and varcmod in renumbervarc, so after a
call to renumbervarc we sometimes weren't reassigning row numbers to
all the arcs whose row numbers had changed. This fixes it.
This also collapses layoutmore and showstuff into one procedure and
gets rid of the phase variable.
Signed-off-by: Paul Mackerras <paulus@samba.org>
call to renumbervarc we sometimes weren't reassigning row numbers to
all the arcs whose row numbers had changed. This fixes it.
This also collapses layoutmore and showstuff into one procedure and
gets rid of the phase variable.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index ea04a09a0c917bc3300f1ba4877846904d0263b8..e0eb3d0f8ece7d8253eab5550367558f8cffc6de 100755 (executable)
--- a/gitk
+++ b/gitk
}
set b [lindex $vupptr($v) $a]
if {$b != $ka} {
+ set tok [lindex $varctok($v) $ka]
+ if {[string compare $tok $vtokmod($v)] < 0} {
+ set vtokmod($v) $tok
+ set varcmod($v) $ka
+ }
+ set tok [lindex $varctok($v) $b]
+ if {[string compare $tok $vtokmod($v)] < 0} {
+ set vtokmod($v) $tok
+ set varcmod($v) $b
+ }
set c [lindex $vdownptr($v) $b]
if {$c == $a} {
lset vdownptr($v) $b [lindex $vleftptr($v) $a]
message $w.m -text {
Gitk - a commit viewer for git
-Copyright © 2005-2006 Paul Mackerras
+Copyright © 2005-2007 Paul Mackerras
Use and redistribute under the terms of the GNU General Public License} \
-justify center -aspect 400 -border 2 -bg white -relief groove
}
proc layoutmore {} {
- global commitidx viewcomplete numcommits
- global uparrowlen downarrowlen mingaplen curview
-
- set show $commitidx($curview)
- if {$show > $numcommits || $viewcomplete($curview)} {
- showstuff $show $viewcomplete($curview)
- }
-}
-
-proc showstuff {canshow last} {
+ global commitidx viewcomplete curview
global numcommits pending_select selectedline curview
- global selectfirst
- global lastscrollset commitinterest
+ global selectfirst lastscrollset commitinterest
+ set canshow $commitidx($curview)
+ if {$canshow <= $numcommits && !$viewcomplete($curview)} return
if {$numcommits == 0} {
- global phase
- set phase "incrdraw"
allcanvs delete all
}
set r0 $numcommits
set prev $numcommits
set numcommits $canshow
set t [clock clicks -milliseconds]
- if {$prev < 100 || $last || $t - $lastscrollset > 500} {
+ if {$prev < 100 || $viewcomplete($curview) || $t - $lastscrollset > 500} {
set lastscrollset $t
setcanvscroll
}
}
proc doshowlocalchanges {} {
- global curview mainheadid phase
+ global curview mainheadid
if {[commitinview $mainheadid $curview]} {
dodiffindex
- } elseif {$phase ne {}} {
- lappend commitinterest($mainheadid) {}
+ } else {
+ lappend commitinterest($mainheadid) {dodiffindex}
}
}