fork-dev / Tracker

Bug and issue tracker for Fork for Mac
494 stars 12 forks source link

No diff for .po files #2065

Closed ismagilli closed 4 months ago

ismagilli commented 4 months ago

I found that fork does not display a text diff for files with .po extension. Note: .po files are plain text (usually in utf8 encoding) files with translations. They are used by GNU gettext.

image
DanPristupov commented 4 months ago

.po files are plain text (usually in utf8 encoding) files with translations.

May be they are in utf-16 which is not handled well by git?

Try to add *.po text to the .gitattributes file.

ismagilli commented 4 months ago

@DanPristupov No, this is utf8 text. But the problem was with git attributes. In the repository I was working with, the -diff attribute was set for .po files. Thanks!