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

Extended splitting for "git add --interactive"

From
UWUlrich Windl <ulrich.windl@rz.uni-regensburg.de>
Date
Nov 26, 2014, 14:55 UTC
Message-ID
<5475F7E7020000A100018050@gwsmtp1.uni-regensburg.de>
Hi!
This is for git-1.7.12 (an older version from the SLES11 SP3 SDK). If the issue is solved meanwhile, I'll be happy, and I apologize for being too lazy to find out.
Currently Git cannot split a block of changes like

-AAA -BBB +CCC +DDD

Into -AAA +CCC and -BBB +DDD

So you'll have to edit it and waste me extra time (People probably use split if they know what they are doing, so maybe allow that).
Another split that is not possible is a split across an empty line, like:
+AAA
+     <empty line (in reality)>
+BBB
One could split that either into two parts with the empty lines belonging to one of AAA or BBB, or into three parts where the empty line is just another junk to accept or refuse. See comment above on why I'd like that.

Regards, Ulrich Windl

Next: Junio C Hamano
Message 1 of 6 in “Extended splitting for "git add --interactive"”
  1. Ulrich WindlNov 26, 2014
  2. Junio C HamanoNov 26, 2014
  3. Junio C HamanoNov 26, 2014
  4. Antw: Re: Extended splitting for "git add --interactive"Ulrich Windl, Nov 27, 2014
  5. Johan HerlandNov 27, 2014
  6. Brandon McCaigNov 27, 2014

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.