Hi,
Is there a way to tell what I am committing to git does not contain whitespace errors? I currently is viewing it in my editor line by line. That is very slow and painful.
Thank you for any suggestion.
Hi,
Is there a way to tell what I am committing to git does not contain whitespace errors? I currently is viewing it in my editor line by line. That is very slow and painful.
Thank you for any suggestion.
Define 'whitespace error'. Put that definition in a hook script (.git/hooks/pre-commit) which checks the patch that you are attempting to commit and fails if it contains one.
Do you have default pre-commit
hook turned on? It includes whitespace check (of a changed part). You can configure git to tell it what it should consider whitespace error; also if you use color diff then you can tell git to color whitespace errors in diff (including "git show <commit>" output).