Identical Files marks as modified

Viktor Iwan January 2, 2015

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

1 vote
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2015

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

Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2015

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

Viktor Iwan January 12, 2015

Any idea on how to detect this ?

Viktor Iwan January 12, 2015

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

0 votes
Viktor Iwan January 12, 2015

It's "Show whitespace"

0 votes
KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 6, 2015

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.

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2015

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

0 votes
Viktor Iwan January 2, 2015

See the below image, 

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

identical.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events