mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-16 16:29:23 +01:00
simplify gitattributes & Windows/.gitattributes
This commit is contained in:
parent
23366015e5
commit
e1aba0dc5f
14
.gitattributes
vendored
14
.gitattributes
vendored
@ -1,14 +1,6 @@
|
|||||||
# Normalize line endings for text files https://www.git-scm.com/docs/gitattributes
|
* text=auto eol=lf
|
||||||
# https://www.git-scm.com/docs/gitattributes#_end_of_line_conversion
|
# Windows files even in checkout
|
||||||
#
|
# Ref: https://rehansaeed.com/gitattributes-best-practices/#line-endings
|
||||||
# WARNING: In the unlikely scenario of checkout within Windows, copy to
|
|
||||||
# Linux, all line endings will be Windows clrf instead of lf as lf files
|
|
||||||
# aren't spoecified otherwise due to this repo mostly being config files.
|
|
||||||
# My repos are mostly incompatible with Windows anyway due to
|
|
||||||
# case-insensitive files anyway.
|
|
||||||
* text=auto
|
|
||||||
# These files are forced to be Windows when checked out. Think of WSL?
|
|
||||||
# https://rehansaeed.com/gitattributes-best-practices/#line-endings
|
|
||||||
*.{reg,[rR][eE][gG]} text eol=crlf
|
*.{reg,[rR][eE][gG]} text eol=crlf
|
||||||
*.{bat,[bB][aA][tT]} text eol=crlf
|
*.{bat,[bB][aA][tT]} text eol=crlf
|
||||||
*.{ahk,[aA][hH][kK]} text eol=crlf
|
*.{ahk,[aA][hH][kK]} text eol=crlf
|
||||||
|
1
Windows/.gitattributes
vendored
Normal file
1
Windows/.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
* text=auto eol=crlf
|
Loading…
Reference in New Issue
Block a user