git diff --ignore-all-space
December 5, 2024
TIL git diff
has an argument --ignore-all-space
(or -w
) which ignores whitespace. Perfect for when a bunch of code got indented but was otherwise unchanged – the indentation changes will not get flagged!