From: Bert Wesarg Date: Fri, 14 Oct 2011 08:19:26 +0000 (+0200) Subject: git-gui: fix multi selected file operation X-Git-Tag: gitgui-0.15.0~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a8ca786991f7308ef12cb1d54ff5d28137c0feb1;p=git.git 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 Signed-off-by: Pat Thoyts --- diff --git a/git-gui.sh b/git-gui.sh index f8971603f..e5dd8bc1f 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 } }