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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]