From 789e24cead5a0fd3fd87735beb1341291c5d1ad0 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 17 Dec 2019 23:34:39 +0100 Subject: [PATCH] AddonManager: add gitattributes file to let git manage file endings and normalize them --- src/Mod/AddonManager/.gitattributes | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/Mod/AddonManager/.gitattributes diff --git a/src/Mod/AddonManager/.gitattributes b/src/Mod/AddonManager/.gitattributes new file mode 100644 index 0000000000..2d74c92005 --- /dev/null +++ b/src/Mod/AddonManager/.gitattributes @@ -0,0 +1,26 @@ +# for more information see forum topic and pull request +# https://github.com/FreeCAD/FreeCAD/pull/2752 +# https://forum.freecadweb.org/viewtopic.php?f=17&t=41117 + + +# get all used file types +# in a directory in a bash use +# find . -type f -name '*.*' | sed 's|.*\.||' | sort -u +# add all of them either to text or binary + + +# Explicitly declare which files we wish to always normalize line-endings on +# standard endings +*.csv text +*.dox text +*.py text +*.qrc text +*.sh text +*.ts text +*.txt text +*.ui text +*.yml text + + +# use git to manually correct the file endings +# git add --renormalize .