From: David Kastrup Date: Thu, 26 Jul 2007 05:48:40 GMT Subject: Re: [PATCH] Teach git-gui to split hunks Message-ID: <85ir8790lj.fsf@lola.goethe.zz> In-Reply-To: Johannes Schindelin writes: > When you select the context menu item "Split Hunk" in the diff area, > git-gui will now split the current hunk so that a new hunk starts at > the current position. > > For this to work, apply has to be called with --unidiff-zero, since > the new hunks can start or stop with a "-" or "+" line. Unless one splits right at the beginning or end of an existing hunk, wouldn't there be context which one could use? Or does it confuse patch when adjacent hunks have overlapping contexts? At least if the first hunk patches what is to be used as context in the second hunk, I could imagine this. And there is really no danger of losing synch in this situation, anyhow. So it would be more of a convenience thing than anything else to be able to omit --unidiff-zero. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum