FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.45k stars 640 forks source link

Show trailing whitespaces in a different color #242

Closed entropitor closed 11 years ago

entropitor commented 11 years ago

Many projects don't like trailing whitespaces so it would be nice if those were indicated in the diff before committing, maybe even with a warning when committing that the commit contains trailing whitespaces.

FredrikNoren commented 11 years ago

Yeah I've seen this in a couple of places but I've yet to hear a compelling reason to why we should care about trailing whitespaces. Until I do I'd prefer to keep it outside Ungit, but I think you can configure git to throw errors when it sees trailing whitespaces (take a look at core.whitespace). Hope that helps.