Gmane
Picon Gravatar
From: Paolo Bonzini <paolo.bonzini <at> gmail.com>
Subject: Re: Bug report: .gitattributes: -diff Unset causes files to be reported as binaries
Newsgroups: gmane.comp.version-control.git
Date: 2009-07-02 11:29:30 GMT (35 weeks, 6 days, 12 hours and 56 minutes ago)

>>> 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