doc txt & -h consistency: use "<options>", not "<options>..."
It's arguably more correct to say "[<option>...]" than either of these forms, but the vast majority of our documentation uses the "[<options>]" form to indicate an arbitrary number of options, let's do the same in these cases, which were the odd ones out. In the case of "mv" and "sparse-checkout" let's add the missing "[]" to indicate that these are optional. In the case of "t/helper/test-proc-receive.c" there is no *.txt version, making it the only hunk in this commit that's not a "doc txt & -h consistency" change. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
007512152e
commit
23a9235d52
@ -9,7 +9,7 @@ git-mv - Move or rename a file, a directory, or a symlink
|
|||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
[verse]
|
[verse]
|
||||||
'git mv' <options>... <args>...
|
'git mv' [<options>] <args>...
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -9,7 +9,7 @@ git-status - Show the working tree status
|
|||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
[verse]
|
[verse]
|
||||||
'git status' [<options>...] [--] [<pathspec>...]
|
'git status' [<options>] [--] [<pathspec>...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -180,8 +180,8 @@ static inline void oe_set_delta_size(struct packing_data *pack,
|
|||||||
#define SET_DELTA_SIBLING(obj, val) oe_set_delta_sibling(&to_pack, obj, val)
|
#define SET_DELTA_SIBLING(obj, val) oe_set_delta_sibling(&to_pack, obj, val)
|
||||||
|
|
||||||
static const char *pack_usage[] = {
|
static const char *pack_usage[] = {
|
||||||
N_("git pack-objects --stdout [<options>...] [< <ref-list> | < <object-list>]"),
|
N_("git pack-objects --stdout [<options>] [< <ref-list> | < <object-list>]"),
|
||||||
N_("git pack-objects [<options>...] <base-name> [< <ref-list> | < <object-list>]"),
|
N_("git pack-objects [<options>] <base-name> [< <ref-list> | < <object-list>]"),
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
static const char *empty_base = "";
|
static const char *empty_base = "";
|
||||||
|
|
||||||
static char const * const builtin_sparse_checkout_usage[] = {
|
static char const * const builtin_sparse_checkout_usage[] = {
|
||||||
N_("git sparse-checkout (init | list | set | add | reapply | disable) <options>"),
|
N_("git sparse-checkout (init | list | set | add | reapply | disable) [<options>]"),
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "test-tool.h"
|
#include "test-tool.h"
|
||||||
|
|
||||||
static const char *proc_receive_usage[] = {
|
static const char *proc_receive_usage[] = {
|
||||||
"test-tool proc-receive [<options>...]",
|
"test-tool proc-receive [<options>]",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user