From: Junio C Hamano Date: Wed, 24 May 2006 20:19:50 +0000 (-0700) Subject: apply: force matching at the beginning. X-Git-Tag: v1.4.0-rc1~44^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/65aadb92a1ce9605fa2f412b51de91781a3ef3d6?hp=65aadb92a1ce9605fa2f412b51de91781a3ef3d6 apply: force matching at the beginning. When there is no leading context, the patch must match at the beginning of preimage; otherwise there is a "patch adds these lines while the other lines were added to the original file" conflict. This is the opposite of match_end fix earlier in this series. Unlike matching at the end case, we can additionally check the preimage line number recorded in the patch, so the change is not symmetrical with the earlier one. Signed-off-by: Junio C Hamano ---