From: Marco Costalba Date: Sun, 20 May 2007 10:34:06 GMT Subject: Re: [PATCH] Teach 'git-apply --whitespace=strip' to remove empty lines at the end of file Message-ID: In-Reply-To: <7vabvzq0bb.fsf@assigned-by-dhcp.cox.net> On 5/20/07, Junio C Hamano wrote: > "Marco Costalba" writes: > > > Signed-off-by: Marco Costalba > > --- > > > > This one seems to pass all the tests. > > I think this happens to work because you are not feeding -u0 > patch; if you have more than one context, then a hunk that ends > with + line is guaranteed to apply only at the end, With a > diff prepared with -u0, that is not true anymore, is it? > I don't know much about this -u0 thing, could you please point me to an example so I can try to fix also this case? Thanks Marco