Skip to content

Commit

Permalink
Added a .gitattributes file with rules to preserve line endings on sh…
Browse files Browse the repository at this point in the history
…ell scripts
  • Loading branch information
CharlieIGG committed Nov 10, 2019
1 parent 8b43bcd commit b086197
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Entrypoint shell scripts should always use LF:
/bin/dev-entrypoint.sh text eol=lf

# Preserve line endings on all executable files from our rails app:
/bin/* text eol=lf

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text

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

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

0 comments on commit b086197

Please sign in to comment.