diff --git a/.gitattributes b/.gitattributes index b84b57d149..55bb72f281 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,7 +10,9 @@ *.hpp text eol=lf *.txt text eol=lf -# auto remove white space +# 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