Hacker News new | ask | show | jobs
by mcculley 1545 days ago
Even if you are consistent, having unchanged indented text show up differently is very clever. I often end up reviewing a diff that moves a basic block into a conditional branch and have to scan each line to see if it changed.
1 comments

If you're using a language that doesn't depend on indentation (C, Java, Go, Rust etc), try "diff -b" or "git diff -b".

The indented basic block won't show as a difference, only the start and end of the block.

interesting. Is -b equivalent to -Xignore-all-space in git?