aboutsummaryrefslogtreecommitdiff
path: root/commit-updates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-05-13 12:40:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-05-13 12:40:54 -0300
commitea4162487e6abd8506648b196bc5573c357ff1bf (patch)
treeb347c9d42ce2dd0846b8690ae7775acf0659ff9c /commit-updates
parentf7429f563e076d149e982848533be5a8ec5395a5 (diff)
downloadutils-git-ea4162487e6abd8506648b196bc5573c357ff1bf.tar.gz
utils-git-ea4162487e6abd8506648b196bc5573c357ff1bf.tar.bz2
Updates
Diffstat (limited to 'commit-updates')
-rwxr-xr-xcommit-updates10
1 files changed, 7 insertions, 3 deletions
diff --git a/commit-updates b/commit-updates
index 571cadd..698af4d 100755
--- a/commit-updates
+++ b/commit-updates
@@ -7,8 +7,12 @@
ARGS="$*"
# Simply update commit
-if [ ! -z "$1" ]; then
- commit "Updates $*"
+if git status &> /dev/null; then
+ if [ ! -z "$1" ]; then
+ commit "Updates $*"
+ else
+ commit "Updates $(basename `pwd`)"
+ fi
else
- commit "Updates $(basename `pwd`)"
+ mr commit -m "Updates"
fi