We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 852ee02 commit 2709401Copy full SHA for 2709401
mgitstatus
@@ -3,7 +3,7 @@
3
# MIT license
4
5
VERSION="2.2"
6
-DEBUG=0
+DEBUG=${MG_DEBUG:-0}
7
8
usage () {
9
cat << EOF >&2
@@ -276,6 +276,11 @@ for DIR in "${@:-"."}"; do
276
STASHES=$(git stash list | wc -l)
277
cd "$OLDPWD" || exit
278
279
+ [ $DEBUG -eq 1 ] && echo "UNSTAGED: $UNSTAGED"
280
+ [ $DEBUG -eq 1 ] && echo "UNCOMMITTED: $UNCOMMITTED"
281
+ [ $DEBUG -eq 1 ] && echo "UNTRACKED: $UNTRACKED"
282
+ [ $DEBUG -eq 1 ] && echo "STASHES: $STASHES"
283
+
284
# Build up the status string if not flattening. Otherwise, print
285
# results immediately.
286
IS_OK=0 # 0 = Repo needs something, 1 = Repo needs nothing ('ok')
0 commit comments