Skip to content

Commit

Permalink
Specified line endings for script files
Browse files Browse the repository at this point in the history
  • Loading branch information
YohDeadfall committed Jun 17, 2020
1 parent a9cab33 commit b1f388a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
* text=auto

# Force bash scripts to always use lf line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work.
*.in text eol=lf
*.sh text eol=lf

# Likewise, force cmd and batch scripts to always use crlf
*.cmd text eol=crlf
*.bat text eol=crlf

*.cs text=auto diff=csharp
*.csproj text=auto
*.sln text=auto
Expand Down

0 comments on commit b1f388a

Please sign in to comment.