Use parentheses and `...' where appropriate
Remove some stray usage of other bracket types and asterisks for the same purpose. Signed-off-by: Štěpán Němec <stepnem@gmail.com> Acked-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
01398df31c
commit
0adda9362a
@ -14,7 +14,7 @@ SYNOPSIS
|
|||||||
[--ignore-date] [--ignore-space-change | --ignore-whitespace]
|
[--ignore-date] [--ignore-space-change | --ignore-whitespace]
|
||||||
[--whitespace=<option>] [-C<n>] [-p<n>] [--directory=<dir>]
|
[--whitespace=<option>] [-C<n>] [-p<n>] [--directory=<dir>]
|
||||||
[--reject] [-q | --quiet] [--scissors | --no-scissors]
|
[--reject] [-q | --quiet] [--scissors | --no-scissors]
|
||||||
[<mbox> | <Maildir>...]
|
[(<mbox> | <Maildir>)...]
|
||||||
'git am' (--continue | --skip | --abort)
|
'git am' (--continue | --skip | --abort)
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
@ -25,7 +25,7 @@ current branch.
|
|||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-------
|
-------
|
||||||
<mbox>|<Maildir>...::
|
(<mbox>|<Maildir>)...::
|
||||||
The list of mailbox files to read patches from. If you do not
|
The list of mailbox files to read patches from. If you do not
|
||||||
supply this argument, the command reads from the standard input.
|
supply this argument, the command reads from the standard input.
|
||||||
If you supply directories, they will be treated as Maildirs.
|
If you supply directories, they will be treated as Maildirs.
|
||||||
|
@ -14,7 +14,7 @@ SYNOPSIS
|
|||||||
[--allow-binary-replacement | --binary] [--reject] [-z]
|
[--allow-binary-replacement | --binary] [--reject] [-z]
|
||||||
[-p<n>] [-C<n>] [--inaccurate-eof] [--recount] [--cached]
|
[-p<n>] [-C<n>] [--inaccurate-eof] [--recount] [--cached]
|
||||||
[--ignore-space-change | --ignore-whitespace ]
|
[--ignore-space-change | --ignore-whitespace ]
|
||||||
[--whitespace=<nowarn|warn|fix|error|error-all>]
|
[--whitespace=(nowarn|warn|fix|error|error-all)]
|
||||||
[--exclude=<path>] [--include=<path>] [--directory=<root>]
|
[--exclude=<path>] [--include=<path>] [--directory=<root>]
|
||||||
[--verbose] [<patch>...]
|
[--verbose] [<patch>...]
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ SYNOPSIS
|
|||||||
[--stage=<number>|all]
|
[--stage=<number>|all]
|
||||||
[--temp]
|
[--temp]
|
||||||
[-z] [--stdin]
|
[-z] [--stdin]
|
||||||
[--] [<file>]*
|
[--] [<file>...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -8,7 +8,7 @@ git-commit-tree - Create a new commit object
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
'git commit-tree' <tree> [-p <parent commit>]* < changelog
|
'git commit-tree' <tree> [(-p <parent commit>)...] < changelog
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -12,7 +12,7 @@ SYNOPSIS
|
|||||||
|
|
||||||
'git fetch' [<options>] <group>
|
'git fetch' [<options>] <group>
|
||||||
|
|
||||||
'git fetch' --multiple [<options>] [<repository> | <group>]...
|
'git fetch' --multiple [<options>] [(<repository> | <group>)...]
|
||||||
|
|
||||||
'git fetch' --all [<options>]
|
'git fetch' --all [<options>]
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ OPTIONS
|
|||||||
This is the filter for performing the commit.
|
This is the filter for performing the commit.
|
||||||
If this filter is specified, it will be called instead of the
|
If this filter is specified, it will be called instead of the
|
||||||
'git commit-tree' command, with arguments of the form
|
'git commit-tree' command, with arguments of the form
|
||||||
"<TREE_ID> [-p <PARENT_COMMIT_ID>]..." and the log message on
|
"<TREE_ID> [(-p <PARENT_COMMIT_ID>)...]" and the log message on
|
||||||
stdin. The commit id is expected on stdout.
|
stdin. The commit id is expected on stdout.
|
||||||
+
|
+
|
||||||
As a special extension, the commit filter may emit multiple
|
As a special extension, the commit filter may emit multiple
|
||||||
|
@ -9,7 +9,7 @@ SYNOPSIS
|
|||||||
--------
|
--------
|
||||||
[verse]
|
[verse]
|
||||||
'git for-each-ref' [--count=<count>] [--shell|--perl|--python|--tcl]
|
'git for-each-ref' [--count=<count>] [--shell|--perl|--python|--tcl]
|
||||||
[--sort=<key>]* [--format=<format>] [<pattern>...]
|
[(--sort=<key>)...] [--format=<format>] [<pattern>...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -31,7 +31,7 @@ current working directory.
|
|||||||
Specify the directory from which templates will be used. (See the "TEMPLATE
|
Specify the directory from which templates will be used. (See the "TEMPLATE
|
||||||
DIRECTORY" section below.)
|
DIRECTORY" section below.)
|
||||||
|
|
||||||
--shared[={false|true|umask|group|all|world|everybody|0xxx}]::
|
--shared[=(false|true|umask|group|all|world|everybody|0xxx)]::
|
||||||
|
|
||||||
Specify that the git repository is to be shared amongst several users. This
|
Specify that the git repository is to be shared amongst several users. This
|
||||||
allows users belonging to the same group to push into that
|
allows users belonging to the same group to push into that
|
||||||
|
@ -17,7 +17,7 @@ SYNOPSIS
|
|||||||
[--exclude-per-directory=<file>]
|
[--exclude-per-directory=<file>]
|
||||||
[--exclude-standard]
|
[--exclude-standard]
|
||||||
[--error-unmatch] [--with-tree=<tree-ish>]
|
[--error-unmatch] [--with-tree=<tree-ish>]
|
||||||
[--full-name] [--abbrev] [--] [<file>]*
|
[--full-name] [--abbrev] [--] [<file>...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -7,7 +7,7 @@ git-mailsplit - Simple UNIX mbox splitter program
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
'git mailsplit' [-b] [-f<nn>] [-d<prec>] [--keep-cr] -o<directory> [--] [<mbox>|<Maildir>...]
|
'git mailsplit' [-b] [-f<nn>] [-d<prec>] [--keep-cr] -o<directory> [--] [(<mbox>|<Maildir>)...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -7,7 +7,7 @@ git-mergetool - Run merge conflict resolution tools to resolve merge conflicts
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
'git mergetool' [--tool=<tool>] [-y|--no-prompt|--prompt] [<file>]...
|
'git mergetool' [--tool=<tool>] [-y|--no-prompt|--prompt] [<file>...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -12,7 +12,7 @@ SYNOPSIS
|
|||||||
'git pack-objects' [-q | --progress | --all-progress] [--all-progress-implied]
|
'git pack-objects' [-q | --progress | --all-progress] [--all-progress-implied]
|
||||||
[--no-reuse-delta] [--delta-base-offset] [--non-empty]
|
[--no-reuse-delta] [--delta-base-offset] [--non-empty]
|
||||||
[--local] [--incremental] [--window=<n>] [--depth=<n>]
|
[--local] [--incremental] [--window=<n>] [--depth=<n>]
|
||||||
[--revs [--unpacked | --all]*] [--stdout | base-name]
|
[--revs [--unpacked | --all]] [--stdout | base-name]
|
||||||
[--keep-true-parents] < object-list
|
[--keep-true-parents] < object-list
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ git-relink - Hardlink common objects in local repositories
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
'git relink' [--safe] <dir> [<dir>]* <master_dir>
|
'git relink' [--safe] <dir>... <master_dir>
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -20,7 +20,7 @@ SYNOPSIS
|
|||||||
'git remote set-url --delete' [--push] <name> <url>
|
'git remote set-url --delete' [--push] <name> <url>
|
||||||
'git remote' [-v | --verbose] 'show' [-n] <name>
|
'git remote' [-v | --verbose] 'show' [-n] <name>
|
||||||
'git remote prune' [-n | --dry-run] <name>
|
'git remote prune' [-n | --dry-run] <name>
|
||||||
'git remote' [-v | --verbose] 'update' [-p | --prune] [<group> | <remote>]...
|
'git remote' [-v | --verbose] 'update' [-p | --prune] [(<group> | <remote>)...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -37,7 +37,7 @@ SYNOPSIS
|
|||||||
[ \--regexp-ignore-case | -i ]
|
[ \--regexp-ignore-case | -i ]
|
||||||
[ \--extended-regexp | -E ]
|
[ \--extended-regexp | -E ]
|
||||||
[ \--fixed-strings | -F ]
|
[ \--fixed-strings | -F ]
|
||||||
[ \--date={local|relative|default|iso|rfc|short} ]
|
[ \--date=(local|relative|default|iso|rfc|short) ]
|
||||||
[ [\--objects | \--objects-edge] [ \--unpacked ] ]
|
[ [\--objects | \--objects-edge] [ \--unpacked ] ]
|
||||||
[ \--pretty | \--header ]
|
[ \--pretty | \--header ]
|
||||||
[ \--bisect ]
|
[ \--bisect ]
|
||||||
|
@ -95,7 +95,7 @@ OPTIONS
|
|||||||
unfortunately named tag "master"), and show them as full
|
unfortunately named tag "master"), and show them as full
|
||||||
refnames (e.g. "refs/heads/master").
|
refnames (e.g. "refs/heads/master").
|
||||||
|
|
||||||
--abbrev-ref[={strict|loose}]::
|
--abbrev-ref[=(strict|loose)]::
|
||||||
A non-ambiguous short name of the objects name.
|
A non-ambiguous short name of the objects name.
|
||||||
The option core.warnAmbiguousRefs is used to select the strict
|
The option core.warnAmbiguousRefs is used to select the strict
|
||||||
abbreviation mode.
|
abbreviation mode.
|
||||||
|
@ -12,7 +12,7 @@ SYNOPSIS
|
|||||||
[--current] [--color[=<when>] | --no-color] [--sparse]
|
[--current] [--color[=<when>] | --no-color] [--sparse]
|
||||||
[--more=<n> | --list | --independent | --merge-base]
|
[--more=<n> | --list | --independent | --merge-base]
|
||||||
[--no-name | --sha1-name] [--topics]
|
[--no-name | --sha1-name] [--topics]
|
||||||
[<rev> | <glob>]...
|
[(<rev> | <glob>)...]
|
||||||
|
|
||||||
'git show-branch' (-g|--reflog)[=<n>[,<base>]] [--list] [<ref>]
|
'git show-branch' (-g|--reflog)[=<n>[,<base>]] [--list] [<ref>]
|
||||||
|
|
||||||
|
@ -438,7 +438,7 @@ git rebase --onto remotes/git-svn A^ master
|
|||||||
OPTIONS
|
OPTIONS
|
||||||
-------
|
-------
|
||||||
|
|
||||||
--shared[={false|true|umask|group|all|world|everybody}]::
|
--shared[=(false|true|umask|group|all|world|everybody)]::
|
||||||
--template=<template_directory>::
|
--template=<template_directory>::
|
||||||
Only used with the 'init' command.
|
Only used with the 'init' command.
|
||||||
These are passed directly to 'git init'.
|
These are passed directly to 'git init'.
|
||||||
|
@ -12,7 +12,7 @@ SYNOPSIS
|
|||||||
'git update-index'
|
'git update-index'
|
||||||
[--add] [--remove | --force-remove] [--replace]
|
[--add] [--remove | --force-remove] [--replace]
|
||||||
[--refresh] [-q] [--unmerged] [--ignore-missing]
|
[--refresh] [-q] [--unmerged] [--ignore-missing]
|
||||||
[--cacheinfo <mode> <object> <file>]*
|
[(--cacheinfo <mode> <object> <file>)...]
|
||||||
[--chmod=(+|-)x]
|
[--chmod=(+|-)x]
|
||||||
[--assume-unchanged | --no-assume-unchanged]
|
[--assume-unchanged | --no-assume-unchanged]
|
||||||
[--skip-worktree | --no-skip-worktree]
|
[--skip-worktree | --no-skip-worktree]
|
||||||
@ -21,7 +21,7 @@ SYNOPSIS
|
|||||||
[--info-only] [--index-info]
|
[--info-only] [--index-info]
|
||||||
[-z] [--stdin]
|
[-z] [--stdin]
|
||||||
[--verbose]
|
[--verbose]
|
||||||
[--] [<file>]*
|
[--] [<file>...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -13,7 +13,7 @@ include::pretty-options.txt[]
|
|||||||
|
|
||||||
Synonym for `--date=relative`.
|
Synonym for `--date=relative`.
|
||||||
|
|
||||||
--date={relative,local,default,iso,rfc,short,raw}::
|
--date=(relative|local|default|iso|rfc|short|raw)::
|
||||||
|
|
||||||
Only takes effect for dates shown in human-readable format, such
|
Only takes effect for dates shown in human-readable format, such
|
||||||
as when using "--pretty". `log.date` config variable sets a default
|
as when using "--pretty". `log.date` config variable sets a default
|
||||||
|
@ -3850,7 +3850,7 @@ You create a commit object by giving it the tree that describes the
|
|||||||
state at the time of the commit, and a list of parents:
|
state at the time of the commit, and a list of parents:
|
||||||
|
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
$ git commit-tree <tree> -p <parent> [-p <parent2> ..]
|
$ git commit-tree <tree> -p <parent> [(-p <parent2>)...]
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
and then giving the reason for the commit on stdin (either through
|
and then giving the reason for the commit on stdin (either through
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include "builtin.h"
|
#include "builtin.h"
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
|
|
||||||
static const char commit_tree_usage[] = "git commit-tree <sha1> [-p <sha1>]* < changelog";
|
static const char commit_tree_usage[] = "git commit-tree <sha1> [(-p <sha1>)...] < changelog";
|
||||||
|
|
||||||
static void new_parent(struct commit *parent, struct commit_list **parents_p)
|
static void new_parent(struct commit *parent, struct commit_list **parents_p)
|
||||||
{
|
{
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
static const char * const builtin_fetch_usage[] = {
|
static const char * const builtin_fetch_usage[] = {
|
||||||
"git fetch [<options>] [<repository> [<refspec>...]]",
|
"git fetch [<options>] [<repository> [<refspec>...]]",
|
||||||
"git fetch [<options>] <group>",
|
"git fetch [<options>] <group>",
|
||||||
"git fetch --multiple [<options>] [<repository> | <group>]...",
|
"git fetch --multiple [<options>] [(<repository> | <group>)...]",
|
||||||
"git fetch --all [<options>]",
|
"git fetch --all [<options>]",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include "exec_cmd.h"
|
#include "exec_cmd.h"
|
||||||
|
|
||||||
static const char index_pack_usage[] =
|
static const char index_pack_usage[] =
|
||||||
"git index-pack [-v] [-o <index-file>] [{ --keep | --keep=<msg> }] [--strict] { <pack-file> | --stdin [--fix-thin] [<pack-file>] }";
|
"git index-pack [-v] [-o <index-file>] [ --keep | --keep=<msg> ] [--strict] (<pack-file> | --stdin [--fix-thin] [<pack-file>])";
|
||||||
|
|
||||||
struct object_entry
|
struct object_entry
|
||||||
{
|
{
|
||||||
|
@ -424,7 +424,7 @@ int report_path_error(const char *ps_matched, const char **pathspec, int prefix_
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const char * const ls_files_usage[] = {
|
static const char * const ls_files_usage[] = {
|
||||||
"git ls-files [options] [<file>]*",
|
"git ls-files [options] [<file>...]",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "strbuf.h"
|
#include "strbuf.h"
|
||||||
|
|
||||||
static const char git_mailsplit_usage[] =
|
static const char git_mailsplit_usage[] =
|
||||||
"git mailsplit [-d<prec>] [-f<n>] [-b] [--keep-cr] -o<directory> [<mbox>|<Maildir>...]";
|
"git mailsplit [-d<prec>] [-f<n>] [-b] [--keep-cr] -o<directory> [(<mbox>|<Maildir>)...]";
|
||||||
|
|
||||||
static int is_from_line(const char *line, int len)
|
static int is_from_line(const char *line, int len)
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char pack_usage[] =
|
static const char pack_usage[] =
|
||||||
"git pack-objects [{ -q | --progress | --all-progress }]\n"
|
"git pack-objects [ -q | --progress | --all-progress ]\n"
|
||||||
" [--all-progress-implied]\n"
|
" [--all-progress-implied]\n"
|
||||||
" [--max-pack-size=<n>] [--local] [--incremental]\n"
|
" [--max-pack-size=<n>] [--local] [--incremental]\n"
|
||||||
" [--window=<n>] [--window-memory=<n>] [--depth=<n>]\n"
|
" [--window=<n>] [--window-memory=<n>] [--depth=<n>]\n"
|
||||||
|
@ -15,7 +15,7 @@ static const char * const builtin_remote_usage[] = {
|
|||||||
"git remote set-head <name> (-a | -d | <branch>)",
|
"git remote set-head <name> (-a | -d | <branch>)",
|
||||||
"git remote [-v | --verbose] show [-n] <name>",
|
"git remote [-v | --verbose] show [-n] <name>",
|
||||||
"git remote prune [-n | --dry-run] <name>",
|
"git remote prune [-n | --dry-run] <name>",
|
||||||
"git remote [-v | --verbose] update [-p | --prune] [<group> | <remote>]",
|
"git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]",
|
||||||
"git remote set-branches <name> [--add] <branch>...",
|
"git remote set-branches <name> [--add] <branch>...",
|
||||||
"git remote set-url <name> <newurl> [<oldurl>]",
|
"git remote set-url <name> <newurl> [<oldurl>]",
|
||||||
"git remote set-url --add <name> <newurl>",
|
"git remote set-url --add <name> <newurl>",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "parse-options.h"
|
#include "parse-options.h"
|
||||||
|
|
||||||
static const char* show_branch_usage[] = {
|
static const char* show_branch_usage[] = {
|
||||||
"git show-branch [-a|--all] [-r|--remotes] [--topo-order | --date-order] [--current] [--color[=<when>] | --no-color] [--sparse] [--more=<n> | --list | --independent | --merge-base] [--no-name | --sha1-name] [--topics] [<rev> | <glob>]...",
|
"git show-branch [-a|--all] [-r|--remotes] [--topo-order | --date-order] [--current] [--color[=<when>] | --no-color] [--sparse] [--more=<n> | --list | --independent | --merge-base] [--no-name | --sha1-name] [--topics] [(<rev> | <glob>)...]",
|
||||||
"git show-branch (-g|--reflog)[=<n>[,<base>]] [--list] [<ref>]",
|
"git show-branch (-g|--reflog)[=<n>[,<base>]] [--list] [<ref>]",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
SUBDIRECTORY_OK=Yes
|
SUBDIRECTORY_OK=Yes
|
||||||
OPTIONS_KEEPDASHDASH=
|
OPTIONS_KEEPDASHDASH=
|
||||||
OPTIONS_SPEC="\
|
OPTIONS_SPEC="\
|
||||||
git am [options] [<mbox>|<Maildir>...]
|
git am [options] [(<mbox>|<Maildir>)...]
|
||||||
git am [options] (--resolved | --skip | --abort)
|
git am [options] (--resolved | --skip | --abort)
|
||||||
--
|
--
|
||||||
i,interactive run interactively
|
i,interactive run interactively
|
||||||
|
@ -163,7 +163,7 @@ sub link_two_files($$) {
|
|||||||
|
|
||||||
|
|
||||||
sub usage() {
|
sub usage() {
|
||||||
print("Usage: git relink [--safe] <dir> [<dir> ...] <master_dir> \n");
|
print("Usage: git relink [--safe] <dir>... <master_dir> \n");
|
||||||
print("All directories should contain a .git/objects/ subdirectory.\n");
|
print("All directories should contain a .git/objects/ subdirectory.\n");
|
||||||
print("Options\n");
|
print("Options\n");
|
||||||
print("\t--safe\t" .
|
print("\t--safe\t" .
|
||||||
|
Reference in New Issue
Block a user