if [ "$1" = "updated jar(s)" ]
then
# Special commit ... (known-binaries)
+ git add lib/ || exit 255
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
+ git add $2 || exit 255
git commit $2 --signoff -S -m "$1" || exit 255
+ elif [ -d "$1" -o -f "$1" ]
+ then
+ # Limited commit with no message
+ git add $1 || exit 255
+ git commit $1 --signoff -S || exit 255
elif [ -n "$1" ]
then
# Regular commit with given message