diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-05-13 12:40:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-05-13 12:40:54 -0300 |
commit | ea4162487e6abd8506648b196bc5573c357ff1bf (patch) | |
tree | b347c9d42ce2dd0846b8690ae7775acf0659ff9c /commit-updates | |
parent | f7429f563e076d149e982848533be5a8ec5395a5 (diff) | |
download | utils-git-ea4162487e6abd8506648b196bc5573c357ff1bf.tar.gz utils-git-ea4162487e6abd8506648b196bc5573c357ff1bf.tar.bz2 |
Updates
Diffstat (limited to 'commit-updates')
-rwxr-xr-x | commit-updates | 10 |
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 |