git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug report: .gitattributes: -diff Unset causes files to be reported as binaries
@ 2009-07-01 10:08 Frans Englich
  2009-07-02  5:35 ` Jeff King
  2009-07-02 14:29 ` René Scharfe
  0 siblings, 2 replies; 10+ messages in thread
From: Frans Englich @ 2009-07-01 10:08 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]


Hi,

Applying -diff Unset to a file using .gittattributes causes "git diff" to 
state that the file is a binary even though it isn't, or have been instructed 
to be treated as one. See attached script for reproducing.

This causes confusion since the file isn't a binary, it's only the diff output 
that has been suppressed. For instance, an auto generated cpp file has -diff 
Unset applied to it to suppress the meaningless output, but people contact 
you to point out the file is binary.

Perhaps this is easy to fix, a question of changing message strings.


Cheers,

		Frans

[-- Attachment #2: reproduceDiffBinary.sh --]
[-- Type: application/x-shellscript, Size: 365 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-07-02 17:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-01 10:08 Bug report: .gitattributes: -diff Unset causes files to be reported as binaries Frans Englich
2009-07-02  5:35 ` Jeff King
2009-07-02  8:14   ` Frans Englich
2009-07-02 11:12     ` Paolo Bonzini
2009-07-02 11:29       ` Frans Englich
2009-07-02 11:29         ` Paolo Bonzini
2009-07-02 17:05       ` Jeff King
2009-07-02 11:59     ` Jakub Narebski
2009-07-02 17:04     ` Jeff King
2009-07-02 14:29 ` René Scharfe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).