S
S
Stanislav2015-11-16 16:09:12
phpstorm
Stanislav, 2015-11-16 16:09:12

Why does PHPStorm say "Contents are identical" when comparing files, but still consider them different?

Line ending signs are brought to a single format. All this wouldn't be scary if it didn't get in the way of comparing really different files and making sure that you upload or merge only what you really need to the server.
The options for why this may be, I personally consider the following:
1. Different rights to files, but I have win on the locale, linux on the server, so it's not very clear what to do with it. And indirectly, it turns out that this is unlikely to affect, since the same situation is observed when I download these files from the server and compare them on the local machine and what is in the project, also on the local machine.
2. Different dates of creation / modification of files, but what to do with it is not at all clear to me.
I am attaching a screenshot. It shows a comparison of two local folders (on win), but it's exactly the same story when comparing win-linux.
5eb47b4dc2b242c7b1803a59a37c5833.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cobalt the Terrible, 2015-11-16
@lamo4ok

The files differ by 3 bytes. Instead of in UTF-8 BOM whether business a case?

M
Mikhail Osher, 2015-11-16
@miraage

Find the "ignore whitespace: all" setting and see what happens.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question