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

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

From
BMBeau Martinez <beau@beaumartinez.com>
Date
Sep 2, 2016, 14:36 UTC
Message-ID
<CAEtDOuV+0CKRSu9mJa27+yQKJ-QRyNmwecrZKaaCh0St+VagZg@mail.gmail.com>
Hi git developers and community,

I'd like to inquire as to why `git add -p` can only split hunks so much. The limit is too large; why can't you split until each hunk is only a line? I often have to run `edit` and split them manually myself.

I'd like to contribute a patch to change it, although my C is rusty. Are there resources that will help me to do this?

Thank you for your time.
Beau
Next: Jeff King
Message 1 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.