summaryrefslogtreecommitdiffstats
path: root/bin/git-commit-lazy
diff options
context:
space:
mode:
Diffstat (limited to 'bin/git-commit-lazy')
-rwxr-xr-xbin/git-commit-lazy11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/git-commit-lazy b/bin/git-commit-lazy
new file mode 100755
index 0000000..a661f91
--- /dev/null
+++ b/bin/git-commit-lazy
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ -n "$(git config --get user.signingKey)" ]
+then
+ GIT_OPTIONS="-S"
+fi
+
+git add -A
+git commit -a -s --allow-empty -m "Updating." ${GIT_OPTIONS}