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

git commit --interactive patch-mode no longer allows selecting files

From
Jörn Hees <dev@joernhees.de>
Date
Mar 9, 2017, 17:48 UTC
Message-ID
<8C99B562-9194-4227-B40D-F64BBECEEE38@joernhees.de>
Hi,
i'm not entirely sure if this is a bug or intended (couldn't find it in the changelogs though)...
Before 2.12.0 a `git commit --int` / `git add --int` followed by [p] for patch-mode, would allow a numeric selection of the files to patch hunks for (this behavior is well documented all over the internet).
Since 2.12.0 the numeric selection is skipped and automatically drops me directly into hunk mode (Mac OS X homebrew).
I would see this as a feature if only one file is changed. As soon as multiple files are changed, i often have the use-case that i'm in some bigger change, but want to quickly fix something in other files. In those cases, the new behavior forces me to `d` out of potentially many files, just to quickly commit some small change :-/

I already tried in several repos and without ~/.gitconfig . Are there any config options i'm missing?

Best, Jörn

Next: Jeff King
Message 1 of 4 in “git commit --interactive patch-mode no longer allows selecting files”
  1. Jörn HeesMar 9, 2017
  2. Jeff KingMar 9, 2017
  3. Junio C HamanoMar 10, 2017
  4. Jeff KingMar 10, 2017

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.