From 935a350ef0b5c649885a26e4981261eb6953adc2 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 30 May 2017 14:27:30 +0200 Subject: [PATCH] git-gui: allow Ctrl+T to toggle multiple paths This fixes https://github.com/git-for-windows/git/issues/1012 Signed-off-by: Johannes Schindelin --- git-gui/git-gui.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh index 32ede6ad817980..37c1c5d227b403 100755 --- a/git-gui/git-gui.sh +++ b/git-gui/git-gui.sh @@ -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 {