Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | apply: force matching at the beginning. | Junio C Hamano | 2006-05-24 |
| | | | | | | | | | | | | | | 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 <junkio@cox.net> | ||
* | Add a test-case for git-apply trying to add an ending line | Catalin Marinas | 2006-05-24 |
git-apply adding an ending line doesn't seem to fail if the ending line is already present in the patched file. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net> |