user3726374
user3726374

Reputation: 595

Show .dat file (which is UTF8) in GitExtensions

GitExtensions seems to have a "feature" which decides that *.dat files are only shown as binary in the "File Tree" tab.

I have got some *.dat files which are UTF8 encoded text and I must stick to their name pattern. If I rename them to any other file ending, their content can be displayed.

Note: the diff view does work within GitExtensions. Also, the file can be displayed via git bash "git show :myfile.dat"

Is it possible to make GitExtensions show *.dat files in the "File Tree" tab?

Upvotes: 0

Views: 471

Answers (1)

jbialobr
jbialobr

Reputation: 1510

There was a bug in GitExtensions while obtaining data from .gitattributes. You can download a fixed version from here. You should also add the following line to your .gitattributes file in order to tell that dat files should be treated as text files:

*.dat text

Upvotes: 1

Related Questions