]> gitweb.fluxo.info Git - rhatto/apps.git/commitdiff
Inception: status command
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Dec 2017 12:53:58 +0000 (10:53 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Dec 2017 12:53:58 +0000 (10:53 -0200)
inception

index 5a1a61ebdeed595e042b76db43fdb7659326859e..3698296b41859bbfefa66b6eaa2db0f82f689f70 100755 (executable)
--- a/inception
+++ b/inception
@@ -143,6 +143,11 @@ function inception_merge {
   )
 }
 
+# Repository status
+function inception_status {
+  ( cd $DIRNAME && git status --ignored && git submodule foreach --recursive git status --ignored )
+}
+
 # Main
 if [ -z "$1" ]; then
   inception_usage
@@ -160,6 +165,8 @@ elif [ "$1" == "fetch" ]; then
   inception_fetch
 elif [ "$1" == "merge" ]; then
   inception_merge
+elif [ "$1" == "status" ]; then
+  inception_status
 else
   inception_usage
 fi