git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-am: error out when seeing -b/--binary

From
Thomas Rast <trast@inf.ethz.ch>
Date
Mar 13, 2012, 15:43 UTC
Message-ID
<8762e8ld5b.fsf@thomas.inf.ethz.ch>
In-Reply-To
<20120313154209.GC1978@burratino>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 11 quoted lines
> (resetting cc list)
> Thomas Rast wrote:
>
>> Hmm, I had an alternate patch ready in the morning, but Junio beat us to
>> it and applied the old one to master.
>>
>> I don't really think it matters enough to apply *another*, so I'll leave
>> it at that.
>
> May I have a copy?  If it makes the wording better somehow, I would be
> happy to do the work of making a patch on top of master using it.
Sure, but it's nothing magic :-)
------ 8< ------
Subject: [PATCH] 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 <trast@student.ethz.ch>
---
 git-am.sh |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/git-am.sh b/git-am.sh
index 0bd290b..e1bdbfc 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -379,8 +379,12 @@ do
 	case "$1" in
 	-i|--interactive)
 		interactive=t ;;
-	-b|--binary)
+	--binary)
 		: ;;
+	-b)
+		gettextln >&2 "The -b option (shorthand for --binary, both no-ops) was removed in 1.7.10."
+		die "$(gettext "Please adjust your scripts.")"
+		;;
 	-3|--3way)
 		threeway=t ;;
 	-s|--signoff)
-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Jonathan NiederNext: Junio C Hamano
Message 18 of 37 in “stripping [PATCH] without losing later tags from mailed patches (Re: [ 02/12] Remove COMPAT_IA32 support)”
  1. Jonathan NiederMar 12, 2012
  2. Willy TarreauMar 12, 2012
  3. Greg KHMar 12, 2012
  4. Willy TarreauMar 12, 2012
  5. Thomas RastMar 12, 2012
  6. Willy TarreauMar 12, 2012
  7. Jonathan NiederMar 12, 2012
  8. Junio C HamanoMar 12, 2012
  9. Willy TarreauMar 12, 2012
  10. Jonathan NiederMar 12, 2012
  11. Willy TarreauMar 12, 2012
  12. Thomas RastMar 12, 2012
  13. Jonathan NiederMar 12, 2012
  14. Thomas RastMar 12, 2012
  15. Jonathan NiederMar 12, 2012
  16. Thomas RastMar 13, 2012
  17. Jonathan NiederMar 13, 2012
  18. Thomas RastMar 13, 2012
  19. Junio C HamanoMar 13, 2012
  20. Jonathan NiederMar 13, 2012
  21. Junio C HamanoMar 13, 2012
  22. git-am: officially deprecate -b/--binaryJunio C Hamano, Mar 13, 2012
  23. Junio C HamanoMar 12, 2012
  24. Junio C HamanoMar 12, 2012
  25. Junio C HamanoMar 12, 2012
  26. Willy TarreauMar 12, 2012
  27. Junio C HamanoMar 12, 2012
  28. Willy TarreauMar 12, 2012
  29. Junio C HamanoMar 12, 2012
  30. Greg KHMar 12, 2012
  31. Junio C HamanoMar 12, 2012
  32. Greg KHMar 12, 2012
  33. Junio C HamanoMar 12, 2012
  34. Willy TarreauMar 12, 2012
  35. Jonathan NiederMar 12, 2012
  36. SergioMar 13, 2012
  37. Thomas RastMar 13, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.