From e65cae7c46d1e3175932db46466dcf737d906377 Mon Sep 17 00:00:00 2001 From: jujiang Date: Mon, 28 Jun 2021 13:42:52 -0400 Subject: [PATCH] SWDEV-286322 - Add .gitattribute Change-Id: I4ae4c4498765f10c98bb5f2443a083463b0e25af [ROCm/clr commit: ed0e7f659dbd1f5f721c1a071464ec7203b6b778] --- projects/clr/rocclr/.gitattributes | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 projects/clr/rocclr/.gitattributes diff --git a/projects/clr/rocclr/.gitattributes b/projects/clr/rocclr/.gitattributes new file mode 100644 index 0000000000..55bb72f281 --- /dev/null +++ b/projects/clr/rocclr/.gitattributes @@ -0,0 +1,21 @@ +# Set the default behavior, in case people don't have core.autolf set. +* text=auto + +# Explicitly declare text files you want to always be normalized and converted +# to have LF line endings on checkout. +*.c text eol=lf +*.cpp text eol=lf +*.cc text eol=lf +*.h text eol=lf +*.hpp text eol=lf +*.txt text eol=lf + +# Define files to support auto-remove trailing white space +# Need to run the command below, before add modified file(s) to the staging area +# git config filter.trimspace.clean 'sed -e "s/[[:space:]]*$//g"' +*.cpp filter=trimspace +*.c filter=trimspace +*.h filter=trimspacecpp +*.hpp filter=trimspace +*.md filter=trimspace +