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

[PATCH v2] git-commit --patch

From
Conrad Irwin <conrad.irwin@gmail.com>
Date
Feb 3, 2011, 05:25 UTC
Message-ID
<1296710732-12493-1-git-send-email-conrad.irwin@gmail.com>

This patch-set adds support for git-commit --patch, and tidies up some of the rough edges of git commit --interactive.

The motivation is to support my current workflow, which goes something like:
1. Hack out the basic structure of the feature that I'm working on, until I have
   something that looks like it will work.
2. Split this into several commits with a more logical flow (i.e. some that add
   support for the techniques I want to use for the actual feature, then the
   feature itself).
3. Start fleshing out the implementation, and bug-fixing, with lots of
   git-commit --fixup so that the changes end up in the right commit.
4. At the end of the day, a big rebase -i to make the history readable.

This is just about doable with git-add -p, or git-commit --interactive, but it's very inefficient. I take the presence of git commit --fixup to imply that other people are doing similar, if less extreme things, so assume that they would like a git-commit -p too.

Conrad
Next: Conrad Irwin
Message 1 of 5 in “git-commit --patch”
  1. git-commit --patchConrad Irwin, Feb 3, 2011
  2. 1/3 Use a temporary index for git commit --interactiveConrad Irwin, Feb 3, 2011
  3. 2/3 Allow git commit --interactive with pathsConrad Irwin, Feb 3, 2011
  4. 3/3 Add support for -p/--patch to git-commitConrad Irwin, Feb 3, 2011
  5. Conrad IrwinFeb 6, 2011

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.