summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d1e4675)
raw | patch | inline | side by side (parent: d1e4675)
author | Paul Mackerras <paulus@samba.org> | |
Mon, 28 Aug 2006 12:41:09 +0000 (22:41 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Mon, 28 Aug 2006 12:41:09 +0000 (22:41 +1000) |
When inserting the new commit row for the cherry-picked commit, we weren't
advancing the selected line (if there is one), and we weren't updating
commitlisted properly.
advancing the selected line (if there is one), and we weren't updating
commitlisted properly.
gitk | patch | blob | history |
index b66ccca4da705e5c4496d232ae564b44900de0fb..ebbeac63aaac66c3ffef53c1d66836c11d22ddbf 100755 (executable)
--- a/gitk
+++ b/gitk
catch {unset pending_select}
}
-# Inserting a new commit as the child of the commit on row $row.
+# Insert a new commit as the child of the commit on row $row.
# The new commit will be displayed on row $row and the commits
# on that row and below will move down one row.
proc insertrow {row newcmit} {
global displayorder parentlist childlist commitlisted
global commitrow curview rowidlist rowoffsets numcommits
global rowrangelist idrowranges rowlaidout rowoptim numcommits
- global linesegends
+ global linesegends selectedline
if {$row >= $numcommits} {
puts "oops, inserting new row $row but only have $numcommits rows"
lappend kids $newcmit
lset childlist $row $kids
set childlist [linsert $childlist $row {}]
+ set commitlisted [linsert $commitlisted $row 1]
set l [llength $displayorder]
for {set r $row} {$r < $l} {incr r} {
set id [lindex $displayorder $r]
incr rowoptim
incr numcommits
+ if {[info exists selectedline] && $selectedline >= $row} {
+ incr selectedline
+ }
redisplay
}