diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-06 10:54:32 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-06 10:54:32 -0200 |
commit | a6a0bef84eaa95dcf6f9e3476b333092bf579e8f (patch) | |
tree | 38c16014c5858e9dfca0c9b17d74c48088a27904 | |
parent | aafa6303f1c2c1da0eabce337722a82f55521546 (diff) | |
download | metadot-a6a0bef84eaa95dcf6f9e3476b333092bf579e8f.tar.gz metadot-a6a0bef84eaa95dcf6f9e3476b333092bf579e8f.tar.bz2 |
Adds status command
-rwxr-xr-x | metadot | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -326,6 +326,11 @@ function metadot_deps_bundle { __metadot_process_bundle $* } +# Repository status +function metadot_status { + ( cd $DOT && git status --ignored && git submodule foreach --recursive git status --ignored ) +} + # Parsing if [ -z "$OPT" ]; then metadot_usage @@ -363,6 +368,8 @@ elif [ "$OPT" == "fetch" ]; then metadot_fetch elif [ "$OPT" == "merge" ]; then metadot_merge +elif [ "$OPT" == "status" ]; then + metadot_status else metadot_usage fi |