From: Roland Häder Date: Wed, 19 Jul 2017 08:27:38 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?p=jprojects-scripts.git;a=commitdiff_plain;h=2d172679d4b2f11872fc8f5dad30bfd84e4d43fb Continued a bit: - updated .gitattributes - Added separate handling of committing dist.sh. It is a global commit that takes place in all projects. Signed-off-by: Roland Häder --- 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