Skip to content

Commit ebfcaef

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
git-gui: allow Ctrl+T to toggle multiple paths
This fixes #1012 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent fc8404f commit ebfcaef

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

git-gui/git-gui.sh

+13
Original file line numberDiff line numberDiff line change
@@ -2513,6 +2513,19 @@ proc toggle_or_diff {mode w args} {
25132513
set pos [split [$w index @$x,$y] .]
25142514
foreach {lno col} $pos break
25152515
} else {
2516+
if {$mode eq "toggle"} {
2517+
if {$w eq $ui_workdir} {
2518+
do_add_selection
2519+
set last_clicked {}
2520+
return
2521+
}
2522+
if {$w eq $ui_index} {
2523+
do_unstage_selection
2524+
set last_clicked {}
2525+
return
2526+
}
2527+
}
2528+
25162529
if {$last_clicked ne {}} {
25172530
set lno [lindex $last_clicked 1]
25182531
} else {

0 commit comments

Comments
 (0)