From 2d172679d4b2f11872fc8f5dad30bfd84e4d43fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 19 Jul 2017 10:27:38 +0200 Subject: [PATCH] Continued a bit: - updated .gitattributes - Added separate handling of committing dist.sh. It is a global commit that takes place in all projects. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .gitattributes | 27 +++++++++++++++++++++++++-- commit-jprojects.sh | 4 ++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 17cdcd5..fe707c5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,25 @@ -# Use Linux/Uni* line-feed for new lines (prevents converting) -* text=lf +# Autodetect text files +* text=auto + +# Force the following filetypes to have unix eols, so Windows does not break them +*.* text eol=lf + +# Force images/fonts to be handled as binaries +*.jpg binary +*.jpeg binary +*.gif binary +*.png binary +*.t3x binary +*.t3d binary +*.exe binary +*.data binary +*.ttf binary +*.eof binary +*.eot binary +*.swf binary +*.mov binary +*.mp4 binary +*.mp3 binary +*.ogg binary +*.flv binary + diff --git a/commit-jprojects.sh b/commit-jprojects.sh index deff10f..61ac979 100755 --- a/commit-jprojects.sh +++ b/commit-jprojects.sh @@ -23,6 +23,10 @@ for project in ${LIST}; do then # Special commit ... (known-binaries) git commit --signoff -S lib/*.jar -m "$1" + elif [ "$1" = "updated dist.sh" ] + then + # Special commit ... (known shell script) + git commit --signoff -S "dist.sh" -m "$1" elif [ -n "$1" -a -n "$2" ] then # Regular commit with given message -- 2.39.5