Identical Files marks as modified

Hello,

i update my script. And source tree detect the files as modified, even though the file is identical (i confirmed it by using win merge)

Any idea what might caused this ?

5 answers

This widget could not be displayed.

Whitespace changes? Both SourceTree and WinMerge may be configured to ignore whitespace.

It can also be line endings (win/unix) or some other non-printable characters.

Any idea on how to detect this ?

i looked on WinMerge's Options, Whitespace are not being ignored... probably the problem is on SourceTree

This widget could not be displayed.

See the below image, 

Files are on "Unstage files", no differences whatsoever. Winmerge confirms it as identical

identical.jpg

This widget could not be displayed.

On the right side is a gear icon. If you click it, either "Ignore Whitespace" or "Show Whitespace" will be checked. Which is it?

This widget could not be displayed.

Your git config's core.filemode may be set to true meaning that a change in the files' permissions would result in a modified file. Less plausible since it requires more explicit intervention, but still possible.

This widget could not be displayed.

It's "Show whitespace"

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

709 views 1 3
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