2023-02-12 10:19:50 +01:00
|
|
|
# Normalize line endings for text files
|
2023-02-12 09:46:37 +01:00
|
|
|
# https://www.git-scm.com/docs/gitattributes#_end_of_line_conversion
|
2024-06-11 19:58:27 +02:00
|
|
|
* text=auto eol=lf linguist-detectable
|
|
|
|
doctoc.txt text diff=markdown eol=lf linguist-detectable linguist-language=markdown
|
2023-02-12 09:46:37 +01:00
|
|
|
|
|
|
|
# Unlikely to be ran under Windows, Linux line endings
|
2023-10-15 13:56:09 +02:00
|
|
|
*.{sh,bash,zsh} text diff=bash eol=lf
|
|
|
|
|
2024-06-11 19:58:27 +02:00
|
|
|
*.bibtex text diff=bibtex eol=lf
|
|
|
|
*.css text diff=css eol=lf
|
|
|
|
*.html text diff=html eol=lf
|
|
|
|
*.{md,markdown} text diff=markdown eol=lf
|
|
|
|
*.tex text diff=tex eol=lf
|
2023-02-12 09:46:37 +01:00
|
|
|
|
|
|
|
# While this repository doesn't currently have anything for Windows, I may
|
|
|
|
# use this for reference
|
|
|
|
# https://rehansaeed.com/gitattributes-best-practices/#line-endings
|
2024-06-11 19:58:27 +02:00
|
|
|
*.{reg,[rR][eE][gG]} text eol=crlf
|
|
|
|
*.{bat,[bB][aA][tT]} text eol=crlf
|
|
|
|
*.{ahk,[aA][hH][kK]} text eol=crlf
|
2023-02-12 09:46:37 +01:00
|
|
|
|
|
|
|
# LFS with(/out) locking https://github.com/git-lfs/git-lfs/wiki/File-Locking
|
2024-06-11 19:58:27 +02:00
|
|
|
*.png filter=lfs diff=lfs merge=lfs -text lockable
|
|
|
|
*.pdf filter=lfs diff=lfs merge=lfs -text lockable
|
|
|
|
*.jpg filter=lfs diff=lfs merge=lfs -text lockable
|
|
|
|
*.jpeg filter=lfs diff=lfs merge=lfs -text lockable
|