]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Enhance commit strategy at updown
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Jun 2017 01:49:33 +0000 (22:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Jun 2017 01:49:33 +0000 (22:49 -0300)
updown

diff --git a/updown b/updown
index 732c9d112a8765d1524db2333e53d838eaf5f6ce..6b270243a0e0b39df5dec335fc385b0bf1a06d77 100755 (executable)
--- a/updown
+++ b/updown
@@ -3,7 +3,12 @@
 # commit, merge, push and fetch
 #
 
-commit $*
+if [ ! -z "$*" ]; then
+  commit $*
+else
+  updates
+fi
+
 git merge-to master
 
 if [ "`git branch | grep '^*'`" == '* develop' ]; then