summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Bert Wesarg <bert.wesarg@googlemail.com>2011-10-14 10:19:26 +0200
committerLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2011-10-18 09:10:51 +0100
commita8ca786991f7308ef12cb1d54ff5d28137c0feb1 (patch)
treea9ecf10659f9473184cea9c87206815c03961a01
parentgit-gui: incremental goto line in blame view (diff)
downloadtgif-a8ca786991f7308ef12cb1d54ff5d28137c0feb1.tar.xz
git-gui: fix multi selected file operation
When staging a selection of files using Shift-Click to choose a range of files then using Ctrl-T or the Stage To Commit menu item will stage all the selected files. However if a non-sequential range is selected using Ctrl-Click then all but the first name selected gets staged. This commit fixes this to properly stage all selected files by explicitly adding the path to the list before showing the diff. Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
-rwxr-xr-xgit-gui.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index f8971603f7..e5dd8bc1f2 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -2474,6 +2474,7 @@ proc toggle_or_diff {w x y} {
[concat $after [list ui_ready]]
}
} else {
+ set selected_paths($path) 1
show_diff $path $w $lno
}
}