threads / bug / 47779

BUG: On some Linux systems, "Stage To Commit" hotkey in git-gui stages one file only, even if multiple files are selected

Subject: BUG: On some Linux systems, "Stage To Commit" hotkey in git-gui stages one file only, even if multiple files are selected

## tl;dr

2 messages between Feb 7, 2018 and Feb 7, 2018.

replies: 1people: 2as markdown or json

Birger Skogeng Pedersen· Feb 7, 2018, 13:29 UTC · lore

In git-gui, multiple files from the "Unstaged Changes" widget can be selected. Once multiple files are selected, they can be staged by clicking (toolbar) "Commit"->"Stage To Commit". All the files that were selected then gets staged for the commit. The "Stage To Commit" hotkey (CTRL+T) behaves like the command itself, staging all files that are selected (Tested on Windows 10). However, on some linux systems (currently tested on Ubuntu 17.10), only one file (the most recently selected) gets staged when using the "Stage To Commit" hotkey (CTRL+T), while the other, selected files remain unstaged.

Steps to reproduce (on Ubuntu 17.10):
- Open git-gui in a repository with two or more unstaged, changed files
- Select two or more files in the "Unstaged Changes"
- Click CTRL+T to stage the files that you have selected
(Only a single file will get staged)
Eric Sunshine· Feb 7, 2018, 18:11 UTC · re: Birger Skogeng Pedersen · lore

Re: BUG: On some Linux systems, "Stage To Commit" hotkey in git-gui stages one file only, even if multiple files are selected

On Wed, Feb 7, 2018 at 8:29 AM, Birger Skogeng Pedersen <birger.sp@gmail.com> wrote:

Show 5 quoted lines
> Steps to reproduce (on Ubuntu 17.10):
> - Open git-gui in a repository with two or more unstaged, changed files
> - Select two or more files in the "Unstaged Changes"
> - Click CTRL+T to stage the files that you have selected
> (Only a single file will get staged)
This was fixed in Git 2.16.0.
76756d6706 (git-gui: allow Ctrl+T to toggle multiple paths, 2018-01-09)

← back to recent threads