summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--repo-access.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/repo-access.sh b/repo-access.sh
index 3e9fa8d..3685318 100644
--- a/repo-access.sh
+++ b/repo-access.sh
@@ -193,12 +193,13 @@ function systr_init
}
##
-# systrunk status
+# systrunk status [-d]
#
# View current information such as which branch your worktree is
# TRACking, which commit it is BASEd on, and how far out-of-date
# it is. Additionally, report whether a merge or update operation
-# is currently in-progress.
+# is currently in-progress. If '-d' is given, status will be
+# accompanied by a shortdiff of pending, uncommitted changes.
##
function systr_status
{
@@ -237,4 +238,9 @@ function systr_status
echo "Behind $dist commits"
fi
fi
+
+ if [[ "$1" == "-d" ]]; then
+ echo ""
+ systrunk shortdiff && echo "No pending changes"
+ fi
}