3

Here's the commit cba438 on Github.

As you can see line #1 in index.html is marked as changed:

But as I can see there's no single changed character. Is it up to GitHub or Git? Is it a bug or some hidden character was changed?

Limon Monte
  • 52,539
  • 45
  • 182
  • 213

2 Answers2

4

Yes, there is a hidden character there, a UTF8 BOM.

$ git show cba438:index.html | od -c | head -1
0000000 357 273 277   <   !   d   o   c   t   y   p   e       h   t   m
$ git show cba438~1:index.html | od -c | head -1
0000000   <   !   d   o   c   t   y   p   e       h   t   m   l   >  \n

Related SO question: What's different between UTF-8 and UTF-8 without BOM?

Community
  • 1
  • 1
0

enter image description here

Looks like a whitespace at the end of the deleted line.

Community
  • 1
  • 1
Idos
  • 15,053
  • 14
  • 60
  • 75
  • This is strange. I'm pretty sure that there were no trailing spaces in my code as I have `"trim_trailing_white_space_on_save": true` enabled in Sublime Text. Also, if it's the whitespace, shouldn't GitHub mark it like this: https://i.imgur.com/5KIR6fU.png – Limon Monte Aug 01 '16 at 12:48