Skip to content

Commit

Permalink
Add .gitattributes file to normalize line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
collin80 committed Jul 28, 2013
1 parent f480b51 commit 43e258d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto

# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
*.cpp text
*.ino text
*.txt text
*.brd text
*.sch text

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
*.vcxproj eol=crlf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary

0 comments on commit 43e258d

Please sign in to comment.