tags:

views:

82

answers:

1

I have just one cs file in my repository which git seems to think is binary (in git gui, it just says "binary files differ".

Any ideas?

+2  A: 

You could try and set your cs files as text in a .gitattributes file.

*.vmc diff

(as described in the .gitattributes man page)
or try to diff them as text (git diff --text)

But if your .cs files are UTF-8 or UTF-16, this can be problematic, unless you set your diff to use an external tool able to handle those encoding.

VonC
`*.vmc diff`, not `*.vmc set diff`
Jakub Narębski
@Jakub: thank you, fixed.
VonC
Thanks for answering, as it happens I will never know. I just created a new file and copied the contents from one to the other, and it started working again. Strange...
Benjol