Skip to content

Commit

Permalink
Add .gitattributes file to repo
Browse files Browse the repository at this point in the history
Explicitly forces some file types to be text
and always using Unix-style line endings.
  • Loading branch information
lbruun committed Nov 23, 2017
1 parent f3007f3 commit 855733b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Defines Git attributes per file path / file pattern
#



# Define some file types explicitly as being text.
# This makes sure that we can never inadvertently get
# a file of this type into the repo with a line ending
# other than the Unix-style line ending.
# This will also override the user's own global git settings
# for these file types.

*.css text eol=lf
*.dtd text eol=lf
*.htm text eol=lf
*.html text eol=lf
*.java text eol=lf
*.js text eol=lf
*.md text eol=lf
*.properties text eol=lf
*.scss text eol=lf
*.svg text eol=lf
*.txt text eol=lf
*.xml text eol=lf
*.xsd test eol=lf

.gitattributes text eol=lf
.gitignore text eol=lf
.travis.yml text eol=lf

0 comments on commit 855733b

Please sign in to comment.