]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc txt & -h consistency: use "[<label>...]" for "zero or more"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 13 Oct 2022 15:39:21 +0000 (17:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Oct 2022 16:32:57 +0000 (09:32 -0700)
Correct uses of "<label>..." where we really meant to say
"[<label>...]", i.e. the command in question taken an optional set of
"<label>". As the CodingGuidelines notes "[o]ptional parts [should be]
enclosed in square brackets".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-clean.txt
builtin/clean.c
builtin/commit.c

index d5587cdd8486bca30c0df9db82eaf76f660642ea..2000b4d75cf47da8bdf2557bb32a8e20fa41bd9a 100644 (file)
@@ -8,7 +8,7 @@ git-clean - Remove untracked files from the working tree
 SYNOPSIS
 --------
 [verse]
-'git clean' [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] <pathspec>...
+'git clean' [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] [<pathspec>...]
 
 DESCRIPTION
 -----------
index 6f039f555b23a5a43be2bc988ee8a8f4908e93a1..40ff2c578dea719ca5c91c654b644cfc7be36807 100644 (file)
@@ -26,7 +26,7 @@ static struct string_list del_list = STRING_LIST_INIT_DUP;
 static unsigned int colopts;
 
 static const char *const builtin_clean_usage[] = {
-       N_("git clean [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] <pathspec>..."),
+       N_("git clean [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] [<pathspec>...]"),
        NULL
 };
 
index fcf9c85947e6a1fbe2e96baee2d1cdd3f4764e89..21ad4ccbf87d0242153aea904e49cf135167fe2f 100644 (file)
@@ -45,7 +45,7 @@ static const char * const builtin_commit_usage[] = {
 };
 
 static const char * const builtin_status_usage[] = {
-       N_("git status [<options>] [--] <pathspec>..."),
+       N_("git status [<options>] [--] [<pathspec>...]"),
        NULL
 };