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 authored and Git for Windows Build Agent committed Sep 21, 2017
1 parent b6981b1 commit 495dc57
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 @@ -2513,6 +2513,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 495dc57

Please sign in to comment.