shell-things/.gitattributes

30 lines
969 B
Plaintext
Raw Normal View History

# See https://www.git-scm.com/docs/gitattributes#_effects for more information
2023-02-21 14:35:31 +01:00
* text=auto eol=lf linguist-detectable
# Hunk headers for diff shipped with git
# https://www.git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header
*.{sh,bash,zsh} text diff=bash eol=lf
*.bibtex text diff=bibtex eol=lf
*.cpp text diff=cpp eol=lf
*.css text diff=css eol=lf
*.go text diff=golang eol=lf
*.html text diff=html eol=lf
*.java text diff=java eol=lf
*.{md,markdown} text diff=markdown eol=lf
*.pl text diff=perl eol=lf
*.php text diff=php eol=lf
*.py text diff=python eol=lf
*.rb text diff=ruby eol=lf
*.tex text diff=tex eol=lf
# These files are scary, let's not touch them
# Lockable is provided by git-lfs
LICENSE text lockable
CITATION.cff text lockable
# Windows files even in checkout
# Ref: https://rehansaeed.com/gitattributes-best-practices/#line-endings
2023-02-21 14:35:31 +01:00
*.{reg,[rR][eE][gG]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
*.{ahk,[aA][hH][kK]} text eol=crlf