-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .gitattributes for consistent file handling
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Explicitly declare text files to be normalized and converted to native line endings on checkout. | ||
*.c text | ||
*.h text | ||
*.cpp text | ||
*.hpp text | ||
*.cc text | ||
*.hh text | ||
*.cxx text | ||
*.hxx text | ||
*.md text | ||
*.yml text | ||
*.sh text | ||
*.cmake text | ||
*.cfg text | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.sln text eol=crlf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary | ||
*.pdf binary | ||
*.so binary | ||
*.dll binary | ||
*.exe binary | ||
*.bin binary | ||
|
||
# Denote Dockerfiles and ignore line ending changes | ||
*.dockerfile text eol=lf | ||
|