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

2 messages from 2018-02-07 to 2018-02-07. Participants: Birger Skogeng Pedersen, Eric Sunshine.
Thread: https://gitlist.dev/t/47779

## Birger Skogeng Pedersen, 2018-02-07 13:29

Subject: BUG: On some Linux systems, "Stage To Commit" hotkey in git-gui stages one file only, even if multiple files are selected
Message-ID: <CAGr--=+V6zBo_0c_pX=PNVq1+8N-Q14+wgYx1j_odSGcRAv0hQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAGr--%3D%2BV6zBo_0c_pX%3DPNVq1%2B8N-Q14%2BwgYx1j_odSGcRAv0hQ%40mail.gmail.com

```
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, 2018-02-07 18:11

Subject: Re: BUG: On some Linux systems, "Stage To Commit" hotkey in git-gui stages one file only, even if multiple files are selected
Message-ID: <CAPig+cRbwiDKgtZ4q5fTihHEc5Jyrmc9ZMkVf6jA6NeV7_fE3Q@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcRbwiDKgtZ4q5fTihHEc5Jyrmc9ZMkVf6jA6NeV7_fE3Q%40mail.gmail.com
In-Reply-To: <CAGr--=+V6zBo_0c_pX=PNVq1+8N-Q14+wgYx1j_odSGcRAv0hQ@mail.gmail.com>

```
On Wed, Feb 7, 2018 at 8:29 AM, Birger Skogeng Pedersen
<birger.sp@gmail.com> wrote:
> 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)

```
