Bert Wesarg  committed a8ca786

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 <>

  • Participants
  • Parent commits 843d659
  • Branches master

Comments (0)

Files changed (1)

 				[concat $after [list ui_ready]]
 	} else {
+		set selected_paths($path) 1
 		show_diff $path $w $lno