Re: [PATCH] Teach 'git-apply --whitespace=strip' to remove empty lines at the end of file
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 20, 2007, 10:03 UTC
- Message-ID
- <7vabvzq0bb.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <e5bfff550705200251j3dd9b377je7ae5bafac988060@mail.gmail.com>
"Marco Costalba" <mcostalba@gmail.com> writes:
> Signed-off-by: Marco Costalba <mcostalba@gmail.com> > --- > > 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?
We can argue that -u0 patch is crazy but we do support them.