Code

git-apply: fail if a patch cannot be applied.
authorJunio C Hamano <junkio@cox.net>
Wed, 16 Nov 2005 22:12:56 +0000 (14:12 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 16 Nov 2005 22:12:56 +0000 (14:12 -0800)
commit92927ed0aac56a86f85049215791fcd106af4b62
tree7c9261390297ed1d52097d2dd2fc76b9a1b337b6
parent5b4525eb8b6a4a131d0cc10075165829f754dcc2
git-apply: fail if a patch cannot be applied.

Recently we fixed 'git-apply --stat' not to barf on a binary
differences.  But it accidentally broke the error detection when
we actually attempt to apply them.

This commit fixes the problem and adds test cases.

Signed-off-by: Junio C Hamano <junkio@cox.net>
apply.c
t/t4103-apply-binary.sh [new file with mode: 0644]