Skip to content

Commit

Permalink
Alias for Checking if any file in repo has windows line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoziol committed Feb 25, 2017
1 parent e6d0f06 commit 5040a5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@
# 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

# Check if any file in repo has windows line endings
check-eol = git grep -I --files-with-matches $'\r' HEAD

#Jira tickets (from: http://blogs.atlassian.com/2014/08/whats-new-git-2-1/)
issues = "!f() { : git log ; echo 'Printing issue keys'; git log --oneline $@ | egrep -o [A-Z]+-[0-9]+ | sort | uniq; }; f"
#version for git below 2.1
Expand Down

0 comments on commit 5040a5e

Please sign in to comment.