3 ms·
Some languages are unfortunately whitespace sensitive, so a generic VCS cannot discard whitespace at all. But maybe the diffing tools themselves could be made l
by zelphirkalt 8mo ago
Some languages are unfortunately whitespace sensitive, so a generic VCS cannot discard whitespace at all. But maybe the diffing tools themselves could be made language aware and hide not meaningful changes.
- em-bee 8mo agohiding not meaningful changes is not enough. when a block in python changes the indentation, i want to see that the block is otherwise unchanged. so indentation changes simply need to be marked differently. if a tool can to that then it will also work with code where indentation is optional, allowing me to cleanly indent code without messing up the diff. i saw a diff tool that marked only the characters that changed. that would work here.
- Izkata 8mo agoBoth svn and git have command line options for diff to hide whitespace changes. It's always disappointed me that various web UIs don't have a toggle for it.
- em-bee 8mo agohiding whitespace changes is not the same as indicating them as whitespace change. in particular hiding messes up the proper display of indentation, so it's not always useful.