A specific file in a project shows changes when there are none (russian language file.)

Repo here: https://github.com/4o66/KSP-Mod-Admin-aOS/tree/dev

File path: KSP-Mod-Admin-aOS\KSPModAdmin\Languages\KSPMA.rus.lang

This file is a translation file for localization. It always shows changes, for all lines deleted (highlighted in red.) There are no changes to file. External diff using WinDiff shows files are exactly the same.

I have tried deleting the repo from sourcetree, and local disk, followed by a re-fork on github, and re-download of the fork. Without touching any files, this file still shows changes.


3 answers

1 accepted

0 votes
Answer accepted

So the end result: shenanigans with CR/LF Windows vs. Linux.

After toggling the core.autocrlf setting and committing to fix the line ending issue, this has ceased to be an issue.

This probably isn't the case, considering that you've re-cloned the repository, but whitespace changes and file permission changes can both appear like empty diffs (if you have WinDiff configured to ignore whitespace as well). Can you post a screenshot of the diff panel in SourceTree?


Screen Shot 01-05-15 at 10.52 AM.PNG

Checked my WinMerge settings (misspoke earlier when I said WinDiff.) and the Whitespace is NOT being ignored. (setting is Compare whitespace, no ignores are checked.)

Also doublechecked using Notepad++, there are no non-printing characters present in the file other than the CR/LF and the end of each line (except the last line.)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,231 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you