-
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: keep eol to lf as default (#6220)
to avoid problems on windows, as file are meant to be executed in docker in linux env
- Loading branch information
Showing
1 changed file
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,36 @@ | ||
# Basic .gitattributes for a perl repo. | ||
|
||
# prefer keeping line ending unix style | ||
# since most files are used in linux docker containers | ||
* text=auto eol=lf | ||
|
||
# Source files | ||
# ============ | ||
*.pl text linguist-language=Perl | ||
*.pm text linguist-language=Perl | ||
*.pl text linguist-language=Perl eol=lf | ||
*.pm text linguist-language=Perl eol=lf | ||
|
||
# Test files | ||
# ============ | ||
*.t text linguist-language=Perl | ||
*.t text linguist-language=Perl eol=lf | ||
|
||
# Template::Toolkit | ||
# ================= | ||
*.tt text linguist-language=HTML | ||
*.tt text linguist-language=HTML eol=lf | ||
|
||
# Scripts | ||
# ======= | ||
scripts/po-foreground.sh text=auto eol=lf | ||
# we really need lf to avoid problems at execution time in docker | ||
*.sh text=auto text=auto eol=lf | ||
|
||
# Do not treat .csv.<number> files as Roff programming language files | ||
# =================================================================== | ||
*.csv.[0-9] linguist-language=CSV | ||
*.csv.[0-9][0-9] linguist-language=CSV | ||
*.csv.[0-9] linguist-language=CSV eol=lf | ||
*.csv.[0-9][0-9] linguist-language=CSV eol=lf | ||
|
||
# keeps sto safe | ||
*.sto binary | ||
|
||
|
||
[core] | ||
autocrlf=false |