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

Re: Revert option for git add --patch

From
BBogolisk <bogolisk@gmail.com>
Date
Nov 9, 2012, 14:09 UTC
Message-ID
<loom.20121109T150732-186@post.gmane.org>
In-Reply-To
<EE89F0A1-1C07-4597-B654-035F657AD09F@me.com>
Jonathon Mah <jmah <at> me.com> writes:
> 
> Nathan,
> 
> I find myself performing similar actions to you: using git add -p to stage 
hunks, sometimes editing the
> staged patch; and keeping mental notes of things I wanted to revert, sometimes 
changing them in the editor
> in another window, and sometimes reverting them after the add session with git 
checkout -p).

Other front-ends like Egg and Magit has been providing the ability to move hunks back and forth, for a long time.

Previous: Jeff KingNext: Jeff King
Message 4 of 5 in “Re: Revert option for git add --patch”
  1. Jonathon MahNov 8, 2012
  2. Nguyen Thai Ngoc DuyNov 8, 2012
  3. Jeff KingNov 8, 2012
  4. BogoliskNov 9, 2012
  5. Jeff KingNov 8, 2012

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.