why doesn't GitHub see the diff?

Issue

Below is an image of a GitHub diff. One change is all the code is indented. But there are more significant differences than that that went unnoticed.

enter image description here

Update:

Looking here:

enter image description here

Solution

why doesn’t GitHub see the diff?

It is because the indentations are also changed on those line of codes.

To see the diff while ignoring the whitespace changes, do check the hide whitespace checkbox. The option is only available on PR page

enter image description here

Answered By – novalagung

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published