Sato
Sato

Reputation: 8622

Git diff, no new line, what is changed?

I did git diff shows:

-}
\ No newline at end of file
+}

What is changed? It seems no difference to me..

BTW: I offen see red 0 and return in Github commit, What is that mean?

Upvotes: 2

Views: 1154

Answers (2)

SzG
SzG

Reputation: 12629

The original version of the file had no newline character at the end of the last line. You've probably edited the file with a decent editor in the meantime, so now it does have one.

It's definitely not a trailing space. That would be highlighted with red.

Upvotes: 3

Breen ho
Breen ho

Reputation: 1631

You might have added "space" near the brace }. This is one of the reasons. Check that.

Upvotes: -1

Related Questions