From 56d3b71585b418bcf7d8d331b8baaaf7501e926c Mon Sep 17 00:00:00 2001 From: Dmitry Bashkatov Date: Thu, 12 Mar 2026 17:26:07 +0300 Subject: [PATCH 1/3] fix usage --- mgitstatus | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mgitstatus b/mgitstatus index 0878b45..38f5c98 100755 --- a/mgitstatus +++ b/mgitstatus @@ -8,7 +8,7 @@ DEBUG=${MG_DEBUG:-0} usage () { cat << EOF >&2 -Usage: $0 [--version] [-w] [-e] [-f] [--throttle SEC] [-c] [-d/--depth=2] [--flatten] [--no-X] [DIR [DIR]...] +Usage: $0 [--version] [-w] [-e] [-f] [--throttle SEC] [-c] [-d/--depth 2] [--flatten] [--no-X] [DIR [DIR]...] mgitstatus shows uncommitted, untracked and unpushed changes in multiple Git repositories. By default, mgitstatus scans two directories deep. This can be @@ -17,7 +17,7 @@ deep. -b Show currently checked out branch -c Force color output (preserve colors when using pipes) - -d, --depth=2 Scan this many directories deep + -d, --depth 2 Scan this many directories deep -e Exclude repos that are 'ok' -f Do a 'git fetch' on each repo (slow for many repos) -h, --help Show this help message From 15630a3eae828fa6a7149a7a575236a6a0088bcf Mon Sep 17 00:00:00 2001 From: Dmitry Bashkatov Date: Thu, 12 Mar 2026 17:32:00 +0300 Subject: [PATCH 2/3] fix --depth in docs --- mgitstatus.1 | 4 ++-- mgitstatus.1.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mgitstatus.1 b/mgitstatus.1 index 0b5435b..e717c93 100644 --- a/mgitstatus.1 +++ b/mgitstatus.1 @@ -10,7 +10,7 @@ multiple Git repos. .PP \f[B]mgitstatus\f[R] [\f[B]\-\-version\f[R]] [\f[B]\-w\f[R]] [\f[B]\-e\f[R]] [\f[B]\-f\f[R]] [\f[B]\-\-throttle\f[R] SEC] -[\f[B]\-c\f[R]] [\f[B]\-d/\-\-depth\f[R]=2] [\f[B]\-\-flatten\f[R]] +[\f[B]\-c\f[R]] [\f[B]\-d/\-\-depth\f[R] 2] [\f[B]\-\-flatten\f[R]] [\f[B]\-\-no\-X\f[R]] [\f[B]DIR\f[R] [\f[B]DIR\f[R]]\&...] .SH DESCRIPTION .PP @@ -66,7 +66,7 @@ Wait SEC seconds between each `git fetch' (\-f option) .B \f[B]\-c\f[R] Force color output (preserve colors when using pipes) .TP -.B \f[B]\-d, \-\-depth=2\f[R] +.B \f[B]\-d, \-\-depth 2\f[R] Scan this many directories deep. Default is 2. If \f[B]0\f[R], the scan is infinitely deep diff --git a/mgitstatus.1.md b/mgitstatus.1.md index 49e053d..56ad3f6 100644 --- a/mgitstatus.1.md +++ b/mgitstatus.1.md @@ -8,7 +8,7 @@ mgitstatus - Show uncommitted, untracked and unpushed changes for multiple Git r # SYNOPSIS - **mgitstatus** [**\--version**] [**-w**] [**-e**] [**-f**] [**\--throttle** SEC] [**\-c**] [**-d/\--depth**=2] [**\--flatten**] [**\--no-X**] [**DIR** [**DIR**]...] + **mgitstatus** [**\--version**] [**-w**] [**-e**] [**-f**] [**\--throttle** SEC] [**\-c**] [**-d/\--depth** 2] [**\--flatten**] [**\--no-X**] [**DIR** [**DIR**]...] # DESCRIPTION @@ -61,7 +61,7 @@ mgitstatus makes no guarantees that all states are taken into account. **-c** : Force color output (preserve colors when using pipes) -**-d, \--depth=2** +**-d, \--depth 2** : Scan this many directories deep. Default is 2. If **0**, the scan is infinitely deep **\--no-depth** From edbbeefbcfb99dbb8c78b40c64ee00096a9e29c7 Mon Sep 17 00:00:00 2001 From: Dmitry Bashkatov Date: Thu, 12 Mar 2026 17:33:48 +0300 Subject: [PATCH 3/3] fix --depth in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9b15534..e3f65b5 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ for that repo to `true`. (See "usage" below for an example). # Usage - Usage: mgitstatus [--version] [-w] [-e] [-f] [--throttle SEC] [-c] [-d/--depth=2] [--no-depth] [--flatten] [--no-X] [DIR [DIR]...] + Usage: mgitstatus [--version] [-w] [-e] [-f] [--throttle SEC] [-c] [-d/--depth 2] [--no-depth] [--flatten] [--no-X] [DIR [DIR]...] mgitstatus shows uncommitted, untracked and unpushed changes in multiple Git repositories. By default, mgitstatus scans two directories deep. This can be @@ -46,7 +46,7 @@ for that repo to `true`. (See "usage" below for an example). -f Do a 'git fetch' on each repo (slow for many repos) --throttle SEC Wait SEC seconds between each 'git fetch' (-f option) -c Force color output (preserve colors when using pipes) - -d, --depth=2 Scan this many directories deep + -d, --depth 2 Scan this many directories deep --no-depth Do not recurse into directories (incompatible with -d) --flatten Show only one status per line