Re: [PATCH] Teach 'git-apply --whitespace=strip' to remove empty lines at the end of file
- From
- Marco Costalba <mcostalba@gmail.com>
- Date
- May 20, 2007, 10:34 UTC
- Message-ID
- <e5bfff550705200334pef694cn1a7842c23e2672f5@mail.gmail.com>
- In-Reply-To
- <7vabvzq0bb.fsf@assigned-by-dhcp.cox.net>
On 5/20/07, Junio C Hamano <junkio@cox.net> wrote:
Show 12 quoted lines
> "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? >
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