From: Paolo Bonzini Date: Thu, 02 Jul 2009 11:29:30 GMT Subject: Re: Bug report: .gitattributes: -diff Unset causes files to be reported as binaries Message-ID: <4A4C9A1A.10206@gmail.com> In-Reply-To: <200907021329.04258.fenglich@fastmail.fm> >>> 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