I am in the distinctly unfortunate circumstance of working in an environment which worries little of the deep evil known as "trailing whitespace"... But, alas, the enlightened Mercurial persists in warning me, by means of red highlights in diffs, that code I will be checking in contains this unholy thing.
So, is there any way to tell Mercurial to ignore trailing whitespace in diffs?
I've tried all the obvious --ignore-*
commands, and they seem to do nothing.
Thanks!
Put in your hgrc file:
[color]
diff.trailingwhitespace = none
Read more about customizing color schemes on the ColorExtension wiki page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With