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

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

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Mar 13, 2012, 17:51 UTC
Message-ID
<20120313175158.GA6653@burratino>
In-Reply-To
<7v62e8la9y.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> I really don't think it is a good idea to avoid mentioning 1.6.0, at
> which we *removed* description of the option in our manual pages and
> from the "git am -h" help message. How much more active deprecation
> would a user want?
A warning when the option is used or a mention in the release notes.
> To put it another way, think what your answer would be when somebody
> sees the message and says "eh? all of a sudden it was removed?".
> Wouldn't you tell him "At 1.6.0 we deprecated it and stopped
> advertising it"?  Why not give that answer upfront?

I would tell her "Since 1.4.3 it has been a compatibility no-op and our documentation made that clear, and by now based on a search nobody seems to be using it".

What happened in 1.6.0, then? Well, before 1.6.0, the git-am(1) manual said

 -b, --binary
	Pass --allow-binary-replacement flag to git-apply (see
	git-apply(1)).
and the git-apply(1) manual said
 --allow-binary-replacement, --binary
	Historically we did not allow binary patch applied
	without an explicit permission from the user, and this
	flag was the way to do so.  Currently we always allow binary
	patch application, so this is a no-op.

Afterwards, the entry in the git-am(1) manual was removed, saving the reader a little time.

Jonathan
Previous: Junio C HamanoNext: Junio C Hamano
Message 20 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.