Skip to content

Commit

Permalink
Add stricter gitattributes (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 authored Jun 22, 2023
1 parent db8e206 commit 827e2d3
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
* text=lf

# Check out the following as ln always for osx/linux/cygwin
*.sh text eol=lf

# Windows specific files should always be crlf on checkout
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

###############################################################################
# Set default behavior for command prompt diff.
Expand All @@ -10,7 +18,19 @@
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
*.config text
*.cs text diff=csharp
*.csproj text
*.md text
*.msbuild text
*.nuspec text
*.pp text
*.ps1 text
*.sln text
*.tt text
*.txt text
*.xaml text
*.xml text

###############################################################################
# Set the merge driver for project and solution files
Expand Down Expand Up @@ -40,9 +60,12 @@
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
*.bmp binary
*.jpeg binary
*.jpg binary
*.nupkg binary
*.png binary
*.sdf binary

###############################################################################
# diff behavior for common document formats
Expand Down

0 comments on commit 827e2d3

Please sign in to comment.