Skip to content

Commit

Permalink
Create .gitattributes with Auto Line Endings (#21)
Browse files Browse the repository at this point in the history
* Create .gitattributes

* Add additional attributes for other files
  • Loading branch information
benrick authored Nov 25, 2022
1 parent ba77e0b commit 48748d8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* 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
*.resx text=auto
*.xml text=auto
*.txt text=auto

0 comments on commit 48748d8

Please sign in to comment.