Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github for mac diff options

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 replacing 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.

like image 830
ChrisR Avatar asked Nov 14 '22 20:11

ChrisR


1 Answers

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.

like image 144
Tekkub Avatar answered Dec 06 '22 14:12

Tekkub