DDave
DDave

Reputation: 1543

git display different techniques to see hidden characters

I have executed git diff.UserlogList .js, but git is showing that I've deleted line and added a new one, the line that I have added is the same, how I can see invisible chars? Or there is another logic in git that I don't understand?

Screenshot

Upvotes: 0

Views: 578

Answers (1)

jsageryd
jsageryd

Reputation: 4633

Try the --color-words option to git diff. More info at man git-diff.

There are also config options to control the colouring of the diff output, useful for spotting small differences such as whitespace changes. See man git-config, look for color.diff.<slot>.

Upvotes: 1

Related Questions