Skip to content

Commit 4eeb1de

Browse files
Thomas Rastgitster
authored andcommitted
git-am: error out when seeing -b/--binary
The --binary option to git-apply has been a no-op since 2b6eef9 (Make apply --binary a no-op., 2006-09-06) and was deprecated in cb3a160 (git-am: ignore --binary option, 2008-08-09). We could remove it outright, but let's be nice to people who still have scripts saying 'git am -b' (if they exist) and tell them the reason for the sudden failure. Signed-off-by: Thomas Rast <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b8de3f4 commit 4eeb1de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-am.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,9 @@ do
380380
-i|--interactive)
381381
interactive=t ;;
382382
-b|--binary)
383-
: ;;
383+
echo >&2 "The -b/--binary option was deprecated in 1.6.0 and removed in 1.7.10."
384+
die "Please adjust your scripts."
385+
;;
384386
-3|--3way)
385387
threeway=t ;;
386388
-s|--signoff)

0 commit comments

Comments
 (0)