Skip to content

Commit

Permalink
Add .gitattributes
Browse files Browse the repository at this point in the history
Ensures file endings are correct in text file types.
Include common image, text, and MATLAB extensions with explicit
declarations of text/binary as applicable.
  • Loading branch information
scottclowe committed Oct 26, 2015
1 parent 30ee58a commit 218f24a
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .gitattributes
@@ -0,0 +1,46 @@
# Auto detect text files and perform LF normalization
* text=auto

#
# The above will handle all files NOT found below
#

##---------------------------------------------------
# Common .gitattributes
##---------------------------------------------------

# Documents
# ============
*.txt text
*.md text

# Graphics
# ============
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
*.svg text
*.eps binary


##---------------------------------------------------
# Basic .gitattributes for a MATLAB repo
##---------------------------------------------------

# Source files
# ============
*.m text
*.prf text

# Binary files
# ============
*.p binary
*.mex* binary
*.fig binary
*.mat binary
*.mdl binary
*.slx binary

0 comments on commit 218f24a

Please sign in to comment.