1

I see certain file changes appearing in sourcetree, even though the changed content is exactly the same. Image taken from sourcetree

The internal diff tool used in SourceTree is the default one. If it helps, I am using ReSharper that might be editing some of the endlines.

Shivku
  • 156
  • 3
  • 10

1 Answers1

1

How do check the raw ascii representations?

Try:

 git diff --word-diff-regex=.

You will see of the eol changes (end of line character)

Try to clone again your repo after

git config --global core.autocrlf false

The OP Shivku adds in the comments:

This helped me confirm that the file format was originally in UTF-8 BOM format, whilst ReSharper supposedly converts the file format into UTF-8 which removes the sequence of bytes EF BB BF from the file.

See "What's different between UTF-8 and UTF-8 without BOM?".

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thank you. This helped me confirm that the file format was originally in UTF-8 BOM format, whilst ReSharper supposedly converts the fiel format into UTF-8 which removes the sequence of bytes EF BB BF from the file. For further reading check out https://stackoverflow.com/questions/2223882/whats-different-between-utf-8-and-utf-8-without-bom – Shivku Mar 10 '18 at 18:16
  • 1
    @Shivku Well spotted! I have included your comment in the answer for more visibility. – VonC Mar 11 '18 at 00:12