News for hackers. Stuff that matters.
Re:The Tyranny of the Diff by __david__ on Sunday April 08, 2012 @02:11PM (#3814416)
I tend to have different techniques for different situations. For instance, when wrapping an existing chunk of code in an "if" statement or "while" loop, I'll check in the initial change without re-indenting the existing code. Maybe I'll half-indent the new parts or maybe not indent them at all. Either way, that makes the diff readable. Then I'll do a re-indent and check that in, but to me that's ok since it's just a "whitespace" checkin.
Re:The Tyranny of the Diff by drothlis on Monday April 09, 2012 @05:04AM (#3816274)
We have `diff -w` for this type of thing (and `git diff -w` etc). Sadly, we're still missing `git annotate -w`.