From d8d54ebb5cc619eae47418a55aa19c2e36265a90 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 6 Dec 2017 10:53:58 -0200 Subject: Inception: status command --- inception | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'inception') diff --git a/inception b/inception index 5a1a61e..3698296 100755 --- 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 -- cgit v1.2.3