Is there a way to configure github for mac to do a diff with the -w
option to ignore whitespace?
We are in the process of re开发者_如何学编程placing all tabs with spaces in our project but when looking at the diffs for these commits in Github:mac the whole file is marked as changed which makes it hard to see the actual changes.
Why do you have "actual" changes mingled in with the tab changes? Stash your current work, do one giant sweep to clean up the whitespace, push that, then go back to your regularly scheduled programming. Sure, you'll hit a few merge conflicts with anything you were working on before the whitespace fix, but that's unavoidable.
精彩评论