Skip to content

Commit b6f92a8

Browse files
bbollipaulusmack
authored andcommitted
gitk: Adjust the menu line numbers to compensate for the new entry
Commit d835dbb ("gitk: Add a "Copy commit summary" command", 2015-08-13) in the upstream gitk repo added a new context menu entry. Therefore, the line numbers of the entries below the new one need to be adjusted when their text or state is changed. Signed-off-by: Beat Bolli <[email protected]> Cc: Paul Mackerras <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent d835dbb commit b6f92a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gitk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8896,13 +8896,13 @@ proc rowmenu {x y id} {
88968896
if {$id ne $nullid && $id ne $nullid2} {
88978897
set menu $rowctxmenu
88988898
if {$mainhead ne {}} {
8899-
$menu entryconfigure 7 -label [mc "Reset %s branch to here" $mainhead] -state normal
8899+
$menu entryconfigure 8 -label [mc "Reset %s branch to here" $mainhead] -state normal
89008900
} else {
8901-
$menu entryconfigure 7 -label [mc "Detached head: can't reset" $mainhead] -state disabled
8901+
$menu entryconfigure 8 -label [mc "Detached head: can't reset" $mainhead] -state disabled
89028902
}
8903-
$menu entryconfigure 9 -state $mstate
89048903
$menu entryconfigure 10 -state $mstate
89058904
$menu entryconfigure 11 -state $mstate
8905+
$menu entryconfigure 12 -state $mstate
89068906
} else {
89078907
set menu $fakerowmenu
89088908
}

0 commit comments

Comments
 (0)