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

Re: git add -p—splitting hunks, limit is too large

From
Christian Neukirchen <chneukirchen@gmail.com>
Date
Sep 2, 2016, 19:49 UTC
Message-ID
<87mvjqjd48.fsf@juno.home.vuxu.org>
In-Reply-To
<20160902191425.ki7nfhlqgnihoqpw@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Splitting to single lines means you need to remember to add the matched
> pairs, which might be arbitrarily far apart.  That's not really any
> different than dumping the hunk in your editor, but I find there that
> it's easy to rearrange and group things as appropriate.

My main use case for this would be to split a plain addition into several small additions. Which would be much easier with the menu-driven approach.

(Mostly I just use magit, but sometimes I want to do this on machines without emacs set up.)

-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org
Previous: Jeff KingNext: Johannes Schindelin
Message 3 of 5 in “git add -p—splitting hunks, limit is too large”
  1. Beau MartinezSep 2, 2016
  2. Jeff KingSep 2, 2016
  3. Christian NeukirchenSep 2, 2016
  4. Johannes SchindelinSep 4, 2016
  5. Johannes SchindelinSep 4, 2016

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.