commit e2b61f12719e3d621553c88eacee9467aeed52e2
parent 3b4b2433469991ddc68ec00ef089b4122d010796
Author: Wim Dupont <wim@wimdupont.com>
Date: Sat, 22 Jun 2024 08:13:32 +0200
gitc all as default
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.adoc b/README.adoc
@@ -73,7 +73,7 @@ file "~/.sym-pwd.gpg" to use its content as password.
== link:bin/gitc[gitc]
-Adds, commits and pushes git changes after confirmation. The -a "pushall" option should first be added to your gitconfig:
+Adds, commits and pushes git changes to all remotes after confirmation. The "pushall" option should first be added to your gitconfig:
[source,conf]
----
diff --git a/bin/gitc b/bin/gitc
@@ -1,11 +1,11 @@
#!/bin/bash
nosign=0
-all=0
-while getopts "na" arg; do
+current=0
+while getopts "nc" arg; do
case $arg in
n) nosign=1;;
- a) all=1;;
+ c) current=1;;
esac
done
@@ -29,4 +29,4 @@ fi
git add .
test "$nosign" == 1 && git -c commit.gpgsign=false commit -m "$*" || git commit -m "$*"
-test "$all" == 1 && git pushall || git push
+test "$current" == 1 && git push || git pushall