We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb0149e commit 1c4d4e7Copy full SHA for 1c4d4e7
git-gui/git-gui.sh
@@ -2513,6 +2513,19 @@ proc toggle_or_diff {mode w args} {
2513
set pos [split [$w index @$x,$y] .]
2514
foreach {lno col} $pos break
2515
} 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
2525
2526
2527
2528
+
2529
if {$last_clicked ne {}} {
2530
set lno [lindex $last_clicked 1]
2531
0 commit comments