From cd23e6b4366bd931f64847c7919692a3e1ce0256 Mon Sep 17 00:00:00 2001 From: jujiang Date: Mon, 28 Jun 2021 12:10:39 -0400 Subject: [PATCH] SWDEV-286322 - add support for auto-removal of trailing whitespace Change-Id: I1bddaf78b8ee9f7420553bc67bca8e61193c62a1 --- hipamd/.gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hipamd/.gitattributes b/hipamd/.gitattributes index c7b2250c04..d5175f2f9c 100644 --- a/hipamd/.gitattributes +++ b/hipamd/.gitattributes @@ -9,3 +9,12 @@ *.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 \ No newline at end of file