Skip to content

Commit

Permalink
git-am: error out when seeing -b/--binary
Browse files Browse the repository at this point in the history
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 <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Thomas Rast authored and Junio C Hamano committed Mar 12, 2012
1 parent b8de3f4 commit 4eeb1de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ do
-i|--interactive)
interactive=t ;;
-b|--binary)
: ;;
echo >&2 "The -b/--binary option was deprecated in 1.6.0 and removed in 1.7.10."
die "Please adjust your scripts."
;;
-3|--3way)
threeway=t ;;
-s|--signoff)
Expand Down

0 comments on commit 4eeb1de

Please sign in to comment.