Skip to content

Commit

Permalink
git-gui: allow Ctrl+T to toggle multiple paths
Browse files Browse the repository at this point in the history
This fixes #1012

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Nov 29, 2017
1 parent 34d8c8b commit 5cb614b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions git-gui/git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,19 @@ proc toggle_or_diff {mode w args} {
set pos [split [$w index @$x,$y] .]
foreach {lno col} $pos break
} else {
if {$mode eq "toggle"} {
if {$w eq $ui_workdir} {
do_add_selection
set last_clicked {}
return
}
if {$w eq $ui_index} {
do_unstage_selection
set last_clicked {}
return
}
}
if {$last_clicked ne {}} {
set lno [lindex $last_clicked 1]
} else {
Expand Down

0 comments on commit 5cb614b

Please sign in to comment.