Package: git-core
Version: 1:1.6.1.3-1

Hi,

I've changed the end of a function, and added a new function just
below it.  When I want to interactively add that only want to
commit the first function, splitting doesn't work.

The problem seems to be that git will only split if the diff
has a line that doesn't have a + or - at the front.

diff also has this annoying feature that if you add
a new function, the diff will start with adding something
to the end of the function before it, and keep the end
of the previous function for the new function.

So the diff looks something like:

+       /* stuff */
+}
+
+int foo(void)
+{
+       /* stuff */
 }

And I would like to split it before the "int foo" line.


Kurt




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to