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

Re: [PATCH] docs: explain diff.*.binary option

From
Jeff King <peff@peff.net>
Date
Jan 11, 2011, 06:11 UTC
Message-ID
<20110111061114.GE10094@sigill.intra.peff.net>
In-Reply-To
<7vpqs463o4.fsf@alter.siamese.dyndns.org>
On Mon, Jan 10, 2011 at 09:59:07AM -0800, Junio C Hamano wrote:
Show 15 quoted lines
> Thanks.  I take it that this documents 122aa6f (diff: introduce
> diff.<driver>.binary, 2008-10-05) where you said...
> 
>     This patch introduces a "binary" config option for a diff
>     driver, so that one can explicitly set diff.foo.binary. We
>     default this value to "don't know". That is, setting a diff
>     attribute to "foo" and using "diff.foo.funcname" will have
>     no effect on the binaryness of a file. To get the current
>     behavior, one can set diff.foo.binary to true.
> 
> I am scratching my head about the last sentence, though.  Shouldn't that
> be "false"?  In the olden days, setting diff.foo.funcname made it text but
> with this change it no longer is the case and instead binaryness is
> determined by content inspection, so forcing "text" needs to be done by
> saying "this is _not_ binary", no?

Yeah, that definitely should be "false". I think it was simply a think-o when typing the commit message (and I just did a quick test to double check that the behavior described by the message is in fact what happens).

Reading that thread, too, I think I was a little confused at first back then about how diff.*.binary would be used with respect to textconv, but between some thinking and JSixt beating some sense into me, it came out with at least the correct semantics, if not an accurate commit message. :)

-Peff
Previous: Junio C Hamano
Message 7 of 7 in “PostScript files: textconv and "git add -p"”
  1. Matthieu MoyJan 4, 2011
  2. Jeff KingJan 5, 2011
  3. Matthieu MoyJan 9, 2011
  4. docs: explain diff.*.binary optionJeff King, Jan 9, 2011
  5. Matthieu MoyJan 9, 2011
  6. Junio C HamanoJan 10, 2011
  7. Jeff KingJan 11, 2011

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.