Skip to content

Commit

Permalink
Updated .gitattributes for cross platform devel
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrfraser committed Jan 17, 2018
1 parent 1d25591 commit 25d74d8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
# 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
*.cxx text
*.hpp text
*.java text
*.xml text
*.properties text
*.version text

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.nlf text eol=crlf
*.nsh text eol=crlf

# Deflare files that will always have LF line endings on checkout
*.sh text eol=lf
*.sh.template text eol=lf


###############################################################################
# Set default behavior for command prompt diff.
#
Expand Down

0 comments on commit 25d74d8

Please sign in to comment.