Skip to content

Commit

Permalink
add gitattributes file
Browse files Browse the repository at this point in the history
keep line endings consistent
  • Loading branch information
colearendt committed Sep 4, 2018
1 parent f99560f commit f356c59
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto

# Basic .gitattributes for a R repo.

# Source files
# ============
*.Rdata text
*.rdb binary
*.rds binary
*.Rd text
*.Rdx binary
*.Rmd text
*.R text
DESCRIPTION text

# Basic .gitattributes for a Java repo

# These files are text and should be normalized (Convert crlf => lf)
*.css text
*.df text
*.htm text
*.html text
*.java text
*.js text
*.json text
*.jsp text
*.jspf text
*.jspx text
*.properties text
*.sh text
*.tld text
*.txt text
*.tag text
*.tagx text
*.xml text
*.yml text

# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.dll binary
*.ear binary
*.gif binary
*.ico binary
*.jar binary
*.jpg binary
*.jpeg binary
*.png binary
*.so binary
*.war binary

0 comments on commit f356c59

Please sign in to comment.