File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff 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
6162The following example scans all directories under the current dir, with a
6263depth of 2. That means the current dir and all directories directly under it.
Original file line number Diff line number Diff 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
3637EOF
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
Original file line number Diff line number Diff line change @@ -95,6 +95,9 @@ Do not show branches that have untracked files.
9595.TP
9696.B \f[B] \-\- no \- stashes \f[ R ]
9797Do 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
100103The following command scans two directories deep for Git projects and
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments