Skip to content

Commit 875f1af

Browse files
committed
Added --no-ok as an alias to -e
1 parent 78ec5fe commit 875f1af

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ for that repo to `true`. (See "usage" below for an example).
5757
--no-uncommitted
5858
--no-untracked
5959
--no-stashes
60+
--no-ok (same as -e)
6061

6162
The following example scans all directories under the current dir, with a
6263
depth of 2. That means the current dir and all directories directly under it.

mgitstatus

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ You can limit output with the following options:
3232
--no-uncommitted
3333
--no-untracked
3434
--no-stashes
35+
--no-ok (same as -e)
3536
3637
EOF
3738
}
@@ -96,6 +97,10 @@ while [ -n "$1" ]; do
9697
if [ "$1" = "--no-stashes" ]; then
9798
NO_STASHES=1
9899
fi
100+
if [ "$1" = "--no-ok" ]; then
101+
# Same as -e, but -e violates the principle of least astonishment.
102+
EXCLUDE_OK=1
103+
fi
99104
if [ "$1" = "--throttle" ]; then
100105
THROTTLE="$2"
101106
echo "$THROTTLE" | grep -E "^[0-9]+$" > /dev/null 2>&1

mgitstatus.1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ Do not show branches that have untracked files.
9595
.TP
9696
.B \f[B]\-\-no\-stashes\f[R]
9797
Do now show stashes
98+
.TP
99+
.B \f[B]\-\-no\-ok\f[R]
100+
Do now show repos that are `ok' (same as \-e)
98101
.SH EXAMPLES
99102
.PP
100103
The following command scans two directories deep for Git projects and

mgitstatus.1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ You can limit output with the following options:
8787
**\--no-stashes**
8888
: Do now show stashes
8989

90+
**\--no-ok**
91+
: Do now show repos that are 'ok' (same as -e)
92+
9093

9194
# EXAMPLES
9295

0 commit comments

Comments
 (0)