From: Junio C Hamano Date: Fri, 04 Mar 2011 19:31:29 GMT Subject: Re: [BUG] git-am silently applying patches incorrectly Message-ID: <7vy64u65ta.fsf@alter.siamese.dyndns.org> In-Reply-To: Linus Torvalds 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.