summaryrefslogtreecommitdiffstats
path: root/bin/git-amend-all
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-09 04:21:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-09 04:21:55 +0000
commit453cc058d9ee6d7cb47529d99061216e72149a5f (patch)
tree38e3683d9cb52c2f181d65ba513554a5e1387f20 /bin/git-amend-all
parentInitial commit. (diff)
downloadprogress-linux-tools-453cc058d9ee6d7cb47529d99061216e72149a5f.tar.xz
progress-linux-tools-453cc058d9ee6d7cb47529d99061216e72149a5f.zip
Adding bin.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xbin/git-amend-all11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/git-amend-all b/bin/git-amend-all
new file mode 100755
index 0000000..9621a0d
--- /dev/null
+++ b/bin/git-amend-all
@@ -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 --amend -C HEAD ${GIT_OPTIONS}