Skip to content

Commit

Permalink
Added a .gitattributes file to set the line ending behavior when chec…
Browse files Browse the repository at this point in the history
…king out/committing
  • Loading branch information
ravage84 committed Oct 25, 2013
1 parent 26d677f commit ab2edbe
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .gitattributes
@@ -0,0 +1,33 @@
# Define the line ending behavior of the different file extensions
# 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.
*.php text
*.default text
*.ctp text
*.sql text
*.md text
*.mo text

This comment has been minimized.

Copy link
@ADmad

ADmad Nov 9, 2013

Member

.mo are binary files.

*.po text
*.js text
*.css text
*.ini text
*.properties text
*.txt text
*.xml text
*.yml text
.htaccess text

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

# Declare files that will always have LF line endings on checkout.
*.pem eol=lf

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

0 comments on commit ab2edbe

Please sign in to comment.