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

Re: Bug report: .gitattributes: -diff Unset causes files to be reported as binaries

From
Paolo Bonzini <paolo.bonzini@gmail.com>
Date
Jul 2, 2009, 11:29 UTC
Message-ID
<4A4C9A1A.10206@gmail.com>
In-Reply-To
<200907021329.04258.fenglich@fastmail.fm>
Show 6 quoted lines
>>> If -diff affects whether a file is treated as a binary, as opposed
>>> whether it's diff'ed, it would imo make sense to call it -binary.
>> No, diff affects how a file is diffed.  The particular setting "-diff"
>> diffs the file as if it was binary.
>
> Aha, then we're maybe at conclusion; if -diff doesn't cause the files to be
                                                 ^^^^^^^
???
> treated as binaries
Reread carefully.
1) There is no "-diff" attribute.  There is a "diff" attribute that 
affects *how* (not *whether*) files are diff.
2) A "-" in front of an attribute unsets the attribute.
3) The "diff" attribute, when unset, treats the file as binary.
ergo
4) Using "-diff" in .gitattributes treats the final as binary.
Paolo
Previous: Frans EnglichNext: Jeff King
Message 6 of 10 in “Bug report: .gitattributes: -diff Unset causes files to be reported as binaries”
  1. Frans EnglichJul 1, 2009
  2. Jeff KingJul 2, 2009
  3. Frans EnglichJul 2, 2009
  4. Paolo BonziniJul 2, 2009
  5. Frans EnglichJul 2, 2009
  6. Paolo BonziniJul 2, 2009
  7. Jeff KingJul 2, 2009
  8. Jakub NarebskiJul 2, 2009
  9. Jeff KingJul 2, 2009
  10. René ScharfeJul 2, 2009

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.