fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
463 stars 10 forks source link

Powershell Data Files (.psd1) diffs are being treated as images #2334

Closed danbuchal-mom closed 1 month ago

danbuchal-mom commented 1 month ago

Powershell Data Files (.psd1) diffs are being treated as images: image

These are text-based files that should be a standard text diff.

I assume Fork is confusing them for a Photoshop PSD file. Can a "show diff as txt" toggle be added to the diff view for files that are incorrectly treated as images?

DanPristupov commented 1 month ago

I assume the file is in utf16 which is not handled well by git.

danbuchal-mom commented 1 month ago

I assume the file is in utf16 which is not handled well by git.

@DanPristupov you are 100% correct! I changed it to utf8 and made a change and the text diff is showing correctly now.

Thank you for the quick response! I will close this issue.