Skip to content

Commit

Permalink
Make the DESCRIPTION match <x>... items in the SYNOPSIS
Browse files Browse the repository at this point in the history
When the SYNOPSIS says e.g. "<path>...", it is nice if the DESCRIPTION
also mentions "<path>..." and says the specified "paths" (note plural)
are used for $whatever. This fixes the obvious mismatches.

Signed-off-by: Abhijit Menon-Sen <ams@toroid.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Abhijit Menon-Sen authored and Junio C Hamano committed Jul 31, 2008
1 parent 0e25790 commit f448e24
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions Documentation/git-clean.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ git-clean - Remove untracked files from the working tree
SYNOPSIS
--------
[verse]
'git clean' [-d] [-f] [-n] [-q] [-x | -X] [--] <paths>...
'git clean' [-d] [-f] [-n] [-q] [-x | -X] [--] <path>...

DESCRIPTION
-----------
Removes files unknown to git. This allows to clean the working tree
from files that are not under version control. If the '-x' option is
specified, ignored files are also removed, allowing to remove all
build products.
When optional `<paths>...` arguments are given, the paths
affected are further limited to those that match them.
If any optional `<path>...` arguments are given, only those paths
are affected.


OPTIONS
Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-describe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ abbreviated object name of the most recent commit.

OPTIONS
-------
<committish>::
The object name of the committish.
<committish>...::
Committish object names to describe.

--all::
Instead of using only the annotated tags, use any ref
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-filter-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ to other tags will be rewritten to point to the underlying commit.
directory or when there are already refs starting with
'refs/original/', unless forced.

<rev-list-options>::
<rev-list options>...::
When options are given after the new branch name, they will
be passed to 'git-rev-list'. Only commits in the resulting
output will be filtered, although the filtered commits can still
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-for-each-ref.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ OPTIONS
`xx`; for example `%00` interpolates to `\0` (NUL),
`%09` to `\t` (TAB) and `%0a` to `\n` (LF).

<pattern>::
<pattern>...::
If one or more patterns are given, only refs are shown that
match againt at least one pattern, either using fnmatch(3) or
literally, in the latter case matching completely or from the
Expand Down
6 changes: 3 additions & 3 deletions Documentation/git-log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ include::diff-options.txt[]
Print out the ref names of any commits that are shown.

--full-diff::
Without this flag, "git log -p <paths>..." shows commits that
Without this flag, "git log -p <path>..." shows commits that
touch the specified paths, and diffs about the same specified
paths. With this, the full diff is shown for commits that touch
the specified paths; this means that "<paths>..." limits only
the specified paths; this means that "<path>..." limits only
commits, and doesn't limit diff for those commits.

--follow::
Expand All @@ -57,7 +57,7 @@ include::diff-options.txt[]
Note that only message is considered, if also a diff is shown
its size is not included.

<paths>...::
<path>...::
Show only commits that affect any of the specified paths.


Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-merge.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ include::merge-options.txt[]
it is created). The 'git-fmt-merge-msg' script can be used
to give a good default for automated 'git-merge' invocations.

<remote>::
Other branch head merged into our branch. You need at
<remote>...::
Other branch heads to merge into our branch. You need at
least one <remote>. Specifying more than one <remote>
obviously means you are trying an Octopus.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-show-ref.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ OPTIONS
(5) otherwise output the line.


<pattern>::
<pattern>...::

Show references matching one or more patterns.

Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-show.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ This manual page describes only the most frequently used options.

OPTIONS
-------
<object>::
The name of the object to show.
<object>...::
The names of objects to show.
For a more complete list of ways to spell object names, see
"SPECIFYING REVISIONS" section in linkgit:git-rev-parse[1].

Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-submodule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ OPTIONS
(the default). This limit only applies to modified submodules. The
size is always limited to 1 for added/deleted/typechanged submodules.

<path>::
Path to submodule(s). When specified this will restrict the command
<path>...::
Paths to submodule(s). When specified this will restrict the command
to only operate on the submodules found at the specified paths.
(This argument is required with add).

Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-verify-tag.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Validates the gpg signature created by 'git-tag'.

OPTIONS
-------
<tag>::
SHA1 identifier of a git tag object.
<tag>...::
SHA1 identifiers of git tag objects.

Author
------
Expand Down
2 changes: 1 addition & 1 deletion Documentation/gitk.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ frequently used options.
For a more complete list of ways to spell object names, see
"SPECIFYING REVISIONS" section in linkgit:git-rev-parse[1].

<path>::
<path>...::

Limit commits to the ones touching files in the given paths. Note, to
avoid ambiguity wrt. revision names use "--" to separate the paths
Expand Down

0 comments on commit f448e24

Please sign in to comment.