Re: [BUG] git-am silently applying patches incorrectly
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 4, 2011, 19:31 UTC
- Message-ID
- <7vy64u65ta.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTim=jpJmBZmtAVX2V8Ui44AwpTbevJtSR2Xk=wLX@mail.gmail.com>
Linus Torvalds <torvalds@linux-foundation.org> writes:
> IOW, maybe something like "img->last_match = applied_pos + > postimage.nr;" or whatever. > > I dunno.
I was lazy and didn't want to worry about the consequences of excluding the end of the context lines in the previous hunk, especially when the patch was generated with small number of context lines.
But it would probably be a good idea to cut the search at the tail end of the previous hunk.