]> gitweb.fluxo.info Git - utils-git.git/commitdiff
No argument support for commit-updates
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 18 Mar 2015 16:38:41 +0000 (13:38 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 18 Mar 2015 16:38:41 +0000 (13:38 -0300)
commit-updates

index 8292c80d30f6e7b4328abafcffb10bb9ed32a077..571cadd980c31d1866e67bf7a23c72a40fe4294c 100755 (executable)
@@ -7,4 +7,8 @@
 ARGS="$*"
 
 # Simply update commit
-commit "Updates $*"
+if [ ! -z "$1" ]; then
+  commit "Updates $*"
+else
+  commit "Updates $(basename `pwd`)"
+fi