doc txt & -h consistency: use "[<label>...]" for "zero or more"

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>

Ævar Arnfjörð Bjarmason committed Oct 13, 2022 at 17:39 UTC 463ea0cfae02b5c74d636d1f62de9c2ba0d03d2d
3 files changed +3 -3
Documentation/git-clean.txt
+1 -1
@@ -8,7 +8,7 @@ git-clean - Remove untracked files from the working tree
8 SYNOPSIS
9 --------
10 [verse]
11 -'git clean' [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] <pathspec>...
11 +'git clean' [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] [<pathspec>...]
12
13 DESCRIPTION
14 -----------
builtin/clean.c
+1 -1
@@ -26,7 +26,7 @@ static struct string_list del_list = STRING_LIST_INIT_DUP;
26 static unsigned int colopts;
27
28 static const char *const builtin_clean_usage[] = {
29 - N_("git clean [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] <pathspec>..."),
29 + N_("git clean [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] [<pathspec>...]"),
30 NULL
31 };
32
builtin/commit.c
+1 -1
@@ -45,7 +45,7 @@ static const char * const builtin_commit_usage[] = {
45 };
46
47 static const char * const builtin_status_usage[] = {
48 - N_("git status [<options>] [--] <pathspec>..."),
48 + N_("git status [<options>] [--] [<pathspec>...]"),
49 NULL
50 };
51