git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Birger Skogeng Pedersen <birger.sp@gmail.com>
Date
Feb 7, 2018, 13:29 UTC
Message-ID
<CAGr--=+V6zBo_0c_pX=PNVq1+8N-Q14+wgYx1j_odSGcRAv0hQ@mail.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)
Next: Eric Sunshine
Message 1 of 2 in “BUG: On some Linux systems, "Stage To Commit" hotkey in git-gui stages one file only, even if multiple files are selected”
  1. Birger Skogeng PedersenFeb 7, 2018
  2. Eric SunshineFeb 7, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.