public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* Extended splitting for "git add --interactive"
@ 2014-11-26 14:55 Ulrich Windl
  2014-11-26 18:57 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Ulrich Windl @ 2014-11-26 14:55 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-11-27 15:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-26 14:55 Extended splitting for "git add --interactive" Ulrich Windl
2014-11-26 18:57 ` Junio C Hamano
2014-11-26 20:24   ` Junio C Hamano
2014-11-27  8:55   ` Antw: " Ulrich Windl
2014-11-27 10:14     ` Johan Herland
2014-11-27 15:46       ` Brandon McCaig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox