From 06139724b98f5213cc4a19687da99a23d9137fd3 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 12 Feb 2023 10:46:37 +0200 Subject: [PATCH] .gitattributes: add things I may want to future reference, comments --- .gitattributes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitattributes b/.gitattributes index f96d5bf..4adcd3f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,18 @@ +# Normalize line endings for text files https://www.git-scm.com/docs/gitattributes +# https://www.git-scm.com/docs/gitattributes#_end_of_line_conversion +* text=auto + +# Unlikely to be ran under Windows, Linux line endings +*.bash text eol=lf + +# While this repository doesn't currently have anything for Windows, I may +# use this for reference +# https://rehansaeed.com/gitattributes-best-practices/#line-endings +*.{reg,[rR][eE][gG]} text eol=crlf +*.{bat,[bB][aA][tT]} text eol=crlf +*.{ahk,[aA][hH][kK]} text eol=crlf + +# LFS with(/out) locking https://github.com/git-lfs/git-lfs/wiki/File-Locking *.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