Skip to content

Commit

Permalink
* sed -i 's/text-auto$/\0 eol=lf/' {.,c#,fe}/.gitattributes
Browse files Browse the repository at this point in the history
$ sed -i 's/ eol=crlf//' {.,c#,fe}/.gitattributes
  • Loading branch information
n0099 committed Jun 14, 2024
1 parent 546bdac commit 4214402
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Common settings that generally should always be used with your language specific settings

# Auto detect text files and perform LF normalization
* text=auto
* text=auto eol=lf

#
# The above will handle all files NOT found below
Expand All @@ -26,7 +26,7 @@
*.adoc text
*.textile text
*.mustache text
*.csv text eol=crlf
*.csv text
*.tab text
*.tsv text
*.txt text
Expand Down Expand Up @@ -55,9 +55,9 @@
*.sh text eol=lf
*.zsh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.bat text
*.cmd text
*.ps1 text

# Serialisation
*.json text
Expand Down
6 changes: 3 additions & 3 deletions c#/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# https://github.com/gitattributes/gitattributes/blob/master/CSharp.gitattributes
# Auto detect text files and perform LF normalization
* text=auto
* text=auto eol=lf

*.cs text diff=csharp
*.cshtml text diff=html
*.csx text diff=csharp
*.sln text eol=crlf
*.csproj text eol=crlf
*.sln text
*.csproj text
8 changes: 4 additions & 4 deletions fe/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto
* text=auto eol=lf

# Source code
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.bat text
*.cmd text
*.coffee text
*.css text diff=css
*.htm text diff=html
Expand All @@ -38,7 +38,7 @@
*.onlydata text
*.php text diff=php
*.pl text
*.ps1 text eol=crlf
*.ps1 text
*.py text diff=python
*.rb text diff=ruby
*.sass text
Expand Down

0 comments on commit 4214402

Please sign in to comment.