From 372b380f5d26139f89f93f7183ae0649df829637 Mon Sep 17 00:00:00 2001 From: Stefan Saroiu Date: Fri, 26 Jul 2024 22:03:36 +0000 Subject: [PATCH] Add .gitattributes for consistent file handling --- .gitattributes | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..5a5d2db0 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,33 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Explicitly declare text files to be normalized and converted to native line endings on checkout. +*.c text +*.h text +*.cpp text +*.hpp text +*.cc text +*.hh text +*.cxx text +*.hxx text +*.md text +*.yml text +*.sh text +*.cmake text +*.cfg text + +# Declare files that will always have CRLF line endings on checkout. +*.sln text eol=crlf + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.jpg binary +*.pdf binary +*.so binary +*.dll binary +*.exe binary +*.bin binary + +# Denote Dockerfiles and ignore line ending changes +*.dockerfile text eol=lf +