]> gitweb.fluxo.info Git - metadot.git/commitdiff
Adds status command
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Dec 2017 12:54:32 +0000 (10:54 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Dec 2017 12:54:32 +0000 (10:54 -0200)
metadot

diff --git a/metadot b/metadot
index 0b449a751fff090b1a43cb7e8616636f381459f1..d60f9688bb9ae4286e7e45f96188372606c222e5 100755 (executable)
--- a/metadot
+++ b/metadot
@@ -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