aboutsummaryrefslogtreecommitdiff
path: root/inception
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-06 10:53:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-06 10:53:58 -0200
commitd8d54ebb5cc619eae47418a55aa19c2e36265a90 (patch)
treeacbe163ee886f6b3cfd5b6c6502243037a2dfcef /inception
parent86a4dee86f07254b925c7b84f614a4e4dfeec253 (diff)
downloadapps-d8d54ebb5cc619eae47418a55aa19c2e36265a90.tar.gz
apps-d8d54ebb5cc619eae47418a55aa19c2e36265a90.tar.bz2
Inception: status command
Diffstat (limited to 'inception')
-rwxr-xr-xinception7
1 files changed, 7 insertions, 0 deletions
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