From: Junio C Hamano Date: Tue, 13 Feb 2018 20:35:30 GMT Subject: Re: [PATCH 2/4] t3701: add failing test for pathological context lines Message-ID: In-Reply-To: <20180213104408.9887-3-phillip.wood@talktalk.net> Phillip Wood writes: > From: Phillip Wood > > When a hunk is skipped by add -i the offsets of subsequent hunks are > not adjusted to account for any missing insertions due to the skipped > hunk. Most of the time this does not matter as apply uses the context > lines to apply the subsequent hunks in the correct place, however in > pathological cases the context lines will match at the now incorrect > offset and the hunk will be applied in the wrong place. The offsets of Good. The --recount "feature" on the receiving end does not have enough information to do a job as good as the code sitting at the side of producing a patch to be applied, and this goes in the right direction.