git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* .gitattributes and defaulting to binary
@ 2013-09-16 21:35 Matthieu Vachon
  2013-09-16 22:09 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Matthieu Vachon @ 2013-09-16 21:35 UTC (permalink / raw)
  To: git

Hi all,

I would like to craft my `.gitattributes` in a way that all files
expect those specified in it are treated as binary from a line-ending
normalization point of view (and diff viewing).

But I was not able to achieve it right now. When having this in my
`.gitattributes`, git treats all files as binary, even the one
explicitly specified like `*.txt`:

    *.txt text
    * binary

I tried with:

    *.txt text
    * -text

And it does not seem to work correctly neither because then, my
`test.txt` file is not having correct line ending when setting
`core.eol` to `crlf` (or using `eol=crlf` in the `.gitattributes`
file).

So, is it possible to do something like that? If yes, is my sample
`.gitattributes` should work?

Regards,
Matt

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

end of thread, other threads:[~2013-09-16 22:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-16 21:35 .gitattributes and defaulting to binary Matthieu Vachon
2013-09-16 22:09 ` Jeff King

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