Make apply --binary a no-op.

Historically we did not allow binary patch applied without an
explicit permission from the user, and this flag was the way to
do so.  This makes the flag a no-op by always allowing binary
patch application.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2006-09-06 22:45:21 -07:00
parent 7bbf88c52b
commit 2b6eef943f
3 changed files with 11 additions and 25 deletions

View File

@ -94,11 +94,11 @@ test_expect_failure 'apply binary diff (copy) -- should fail.' \
'do_reset
git-apply --index C.diff'
test_expect_failure 'apply binary diff without replacement -- should fail.' \
test_expect_success 'apply binary diff without replacement.' \
'do_reset
git-apply BF.diff'
test_expect_failure 'apply binary diff without replacement (copy) -- should fail.' \
test_expect_success 'apply binary diff without replacement (copy).' \
'do_reset
git-apply CF.diff'