4 ms·
> it causes issues when you want to add an even longer key to the hash What issues? Needing to realign the values? If so, does your text editor not include ali
by subsection1h 12y ago
> it causes issues when you want to add an even longer key to the hash
What issues? Needing to realign the values? If so, does your text editor not include alignment commands like these:
http://www.emacswiki.org/emacs/AlignCommands http://www.emacswiki.org/emacs/AlignCommands
- nitrogen 12y agoRealigning the values causes all of the lines to change in a line-by-line diff (e.g. as displayed by git diff). It also makes "git blame" less helpful, since every realigned line appears to originate from the alignment commit.
- e12e 12y agoI agree -- but I'd think the work-around would be to do whitespace-insensitvie diffs? Which would probably be a good idea if the codebase uses indentation like this? See eg: https://stackoverflow.com/questions/7310033/how-to-make-git-diff-ignore-space-change-the-default https://stackoverflow.com/questions/7310033/how-to-make-git-...
- jacobparker 12y ago`git blame -w` to ignore whitespace. There are other good options (like `-M`, ignore moved lines) available in the documentation.
- alxndr 12y agoI really wish GitHub would show me all diffs with `-w` by default, with a switch to turn it off...