Skip to content

Commit

Permalink
Merge pull request #12 from depesz/master
Browse files Browse the repository at this point in the history
Add option to detect whitespace errors
  • Loading branch information
jakubnabrdalik committed Nov 5, 2014
2 parents 8af6917 + 6c500ca commit 5da2f89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
cleanuplocal = !git remote prune origin && git gc && git clean -df

unstage = reset HEAD --

# Check if any file in repo has whitespace errors
# As described in http://peter.eisentraut.org/blog/2014/11/04/checking-whitespace-with-git/
check-whitespace = !git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
[apply]
whitespace = nowarn
[core]
Expand Down

0 comments on commit 5da2f89

Please sign in to comment.