Browse Source

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>
maint
Ævar Arnfjörð Bjarmason 2 years ago committed by Junio C Hamano
parent
commit
463ea0cfae
  1. 2
      Documentation/git-clean.txt
  2. 2
      builtin/clean.c
  3. 2
      builtin/commit.c

2
Documentation/git-clean.txt

@ -8,7 +8,7 @@ git-clean - Remove untracked files from the working tree @@ -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
-----------

2
builtin/clean.c

@ -26,7 +26,7 @@ static struct string_list del_list = STRING_LIST_INIT_DUP; @@ -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
};


2
builtin/commit.c

@ -45,7 +45,7 @@ static const char * const builtin_commit_usage[] = { @@ -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
};


Loading…
Cancel
Save