[PATCH 18/34] doc txt & -h consistency: add or fix optional "--" syntax
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Sep 5, 2022, 08:26 UTC
- Message-ID
- <patch-18.34-df312ad3ceb-20220902T092734Z-avarab@gmail.com>
- In-Reply-To
- <cover-00.34-00000000000-20220902T092734Z-avarab@gmail.com>
Add the "[--]" for those cases where the *.txt and -h were inconsistent, or where we incorrectly stated in one but not the other that the "--" was mandatory.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- builtin/for-each-repo.c | 2 +- builtin/rev-list.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin/for-each-repo.c b/builtin/for-each-repo.c index c6379b783c8..d45d873f579 100644 --- a/builtin/for-each-repo.c +++ b/builtin/for-each-repo.c @@ -6,7 +6,7 @@ #include "string-list.h" static const char * const for_each_repo_usage[] = { - N_("git for-each-repo --config=<config> <arguments>"), + N_("git for-each-repo --config=<config> [--] <arguments>"), NULL }; diff --git a/builtin/rev-list.c b/builtin/rev-list.c index ada68a4af5e..3cc8aad52ed 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -20,7 +20,7 @@ #include "packfile.h" static const char rev_list_usage[] = -"git rev-list [<options>] <commit>... [-- <path>...]\n" +"git rev-list [<options>] <commit>... [[--] <path>...]\n" "\n" " limiting output:\n" " --max-count=<n>\n"
-- 2.37.3.1425.g73df845bcb2