doc: use only hyphens as word separators in placeholders

According to CodingGuidelines, multi-word placeholders should use
hyphens as word separators.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Reviewed-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jean-Noël Avila 2021-11-06 19:48:52 +01:00 committed by Junio C Hamano
parent 49cbad0edd
commit 133db54dab
14 changed files with 76 additions and 76 deletions

View File

@ -5,9 +5,9 @@ The `GIT_AUTHOR_DATE` and `GIT_COMMITTER_DATE` environment variables
support the following date formats: support the following date formats:
Git internal format:: Git internal format::
It is `<unix timestamp> <time zone offset>`, where `<unix It is `<unix-timestamp> <time-zone-offset>`, where
timestamp>` is the number of seconds since the UNIX epoch. `<unix-timestamp>` is the number of seconds since the UNIX epoch.
`<time zone offset>` is a positive or negative offset from UTC. `<time-zone-offset>` is a positive or negative offset from UTC.
For example CET (which is 1 hour ahead of UTC) is `+0100`. For example CET (which is 1 hour ahead of UTC) is `+0100`.
RFC 2822:: RFC 2822::

View File

@ -11,7 +11,7 @@ SYNOPSIS
'git checkout' [-q] [-f] [-m] [<branch>] 'git checkout' [-q] [-f] [-m] [<branch>]
'git checkout' [-q] [-f] [-m] --detach [<branch>] 'git checkout' [-q] [-f] [-m] --detach [<branch>]
'git checkout' [-q] [-f] [-m] [--detach] <commit> 'git checkout' [-q] [-f] [-m] [--detach] <commit>
'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] <new_branch>] [<start_point>] 'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] <new-branch>] [<start-point>]
'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <pathspec>... 'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <pathspec>...
'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] --pathspec-from-file=<file> [--pathspec-file-nul] 'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] --pathspec-from-file=<file> [--pathspec-file-nul]
'git checkout' (-p|--patch) [<tree-ish>] [--] [<pathspec>...] 'git checkout' (-p|--patch) [<tree-ish>] [--] [<pathspec>...]
@ -43,7 +43,7 @@ You could omit `<branch>`, in which case the command degenerates to
rather expensive side-effects to show only the tracking information, rather expensive side-effects to show only the tracking information,
if exists, for the current branch. if exists, for the current branch.
'git checkout' -b|-B <new_branch> [<start point>]:: 'git checkout' -b|-B <new-branch> [<start-point>]::
Specifying `-b` causes a new branch to be created as if Specifying `-b` causes a new branch to be created as if
linkgit:git-branch[1] were called and then checked out. In linkgit:git-branch[1] were called and then checked out. In
@ -52,11 +52,11 @@ if exists, for the current branch.
`--track` without `-b` implies branch creation; see the `--track` without `-b` implies branch creation; see the
description of `--track` below. description of `--track` below.
+ +
If `-B` is given, `<new_branch>` is created if it doesn't exist; otherwise, it If `-B` is given, `<new-branch>` is created if it doesn't exist; otherwise, it
is reset. This is the transactional equivalent of is reset. This is the transactional equivalent of
+ +
------------ ------------
$ git branch -f <branch> [<start point>] $ git branch -f <branch> [<start-point>]
$ git checkout <branch> $ git checkout <branch>
------------ ------------
+ +
@ -144,13 +144,13 @@ as `ours` (i.e. "our shared canonical history"), while what you did
on your side branch as `theirs` (i.e. "one contributor's work on top on your side branch as `theirs` (i.e. "one contributor's work on top
of it"). of it").
-b <new_branch>:: -b <new-branch>::
Create a new branch named `<new_branch>` and start it at Create a new branch named `<new-branch>` and start it at
`<start_point>`; see linkgit:git-branch[1] for details. `<start-point>`; see linkgit:git-branch[1] for details.
-B <new_branch>:: -B <new-branch>::
Creates the branch `<new_branch>` and start it at `<start_point>`; Creates the branch `<new-branch>` and start it at `<start-point>`;
if it already exists, then reset it to `<start_point>`. This is if it already exists, then reset it to `<start-point>`. This is
equivalent to running "git branch" with "-f"; see equivalent to running "git branch" with "-f"; see
linkgit:git-branch[1] for details. linkgit:git-branch[1] for details.
@ -209,16 +209,16 @@ variable.
`<commit>` is not a branch name. See the "DETACHED HEAD" section `<commit>` is not a branch name. See the "DETACHED HEAD" section
below for details. below for details.
--orphan <new_branch>:: --orphan <new-branch>::
Create a new 'orphan' branch, named `<new_branch>`, started from Create a new 'orphan' branch, named `<new-branch>`, started from
`<start_point>` and switch to it. The first commit made on this `<start-point>` and switch to it. The first commit made on this
new branch will have no parents and it will be the root of a new new branch will have no parents and it will be the root of a new
history totally disconnected from all the other branches and history totally disconnected from all the other branches and
commits. commits.
+ +
The index and the working tree are adjusted as if you had previously run The index and the working tree are adjusted as if you had previously run
`git checkout <start_point>`. This allows you to start a new history `git checkout <start-point>`. This allows you to start a new history
that records a set of paths similar to `<start_point>` by easily running that records a set of paths similar to `<start-point>` by easily running
`git commit -a` to make the root commit. `git commit -a` to make the root commit.
+ +
This can be useful when you want to publish the tree from a commit This can be useful when you want to publish the tree from a commit
@ -228,7 +228,7 @@ whose full history contains proprietary or otherwise encumbered bits of
code. code.
+ +
If you want to start a disconnected history that records a set of paths If you want to start a disconnected history that records a set of paths
that is totally different from the one of `<start_point>`, then you should that is totally different from the one of `<start-point>`, then you should
clear the index and the working tree right after creating the orphan clear the index and the working tree right after creating the orphan
branch by running `git rm -rf .` from the top level of the working tree. branch by running `git rm -rf .` from the top level of the working tree.
Afterwards you will be ready to prepare your new files, repopulating the Afterwards you will be ready to prepare your new files, repopulating the
@ -340,10 +340,10 @@ As a special case, you may use `A...B` as a shortcut for the
merge base of `A` and `B` if there is exactly one merge base. You can merge base of `A` and `B` if there is exactly one merge base. You can
leave out at most one of `A` and `B`, in which case it defaults to `HEAD`. leave out at most one of `A` and `B`, in which case it defaults to `HEAD`.
<new_branch>:: <new-branch>::
Name for the new branch. Name for the new branch.
<start_point>:: <start-point>::
The name of a commit at which to start the new branch; see The name of a commit at which to start the new branch; see
linkgit:git-branch[1] for details. Defaults to `HEAD`. linkgit:git-branch[1] for details. Defaults to `HEAD`.
+ +

View File

@ -9,10 +9,10 @@ git-clone - Clone a repository into a new directory
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git clone' [--template=<template_directory>] 'git clone' [--template=<template-directory>]
[-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror] [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>] [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
[--dissociate] [--separate-git-dir <git dir>] [--dissociate] [--separate-git-dir <git-dir>]
[--depth <depth>] [--[no-]single-branch] [--no-tags] [--depth <depth>] [--[no-]single-branch] [--no-tags]
[--recurse-submodules[=<pathspec>]] [--[no-]shallow-submodules] [--recurse-submodules[=<pathspec>]] [--[no-]shallow-submodules]
[--[no-]remote-submodules] [--jobs <n>] [--sparse] [--[no-]reject-shallow] [--[no-]remote-submodules] [--jobs <n>] [--sparse] [--[no-]reject-shallow]
@ -211,7 +211,7 @@ objects from the source repository into a pack in the cloned repository.
via ssh, this specifies a non-default path for the command via ssh, this specifies a non-default path for the command
run on the other end. run on the other end.
--template=<template_directory>:: --template=<template-directory>::
Specify the directory from which templates will be used; Specify the directory from which templates will be used;
(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].) (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
@ -294,7 +294,7 @@ or `--mirror` is given)
superproject's recorded SHA-1. Equivalent to passing `--remote` to superproject's recorded SHA-1. Equivalent to passing `--remote` to
`git submodule update`. `git submodule update`.
--separate-git-dir=<git dir>:: --separate-git-dir=<git-dir>::
Instead of placing the cloned repository where it is supposed Instead of placing the cloned repository where it is supposed
to be, place the cloned repository at the specified directory, to be, place the cloned repository at the specified directory,
then make a filesystem-agnostic Git symbolic link to there. then make a filesystem-agnostic Git symbolic link to there.

View File

@ -11,9 +11,9 @@ SYNOPSIS
[verse] [verse]
'git cvsimport' [-o <branch-for-HEAD>] [-h] [-v] [-d <CVSROOT>] 'git cvsimport' [-o <branch-for-HEAD>] [-h] [-v] [-d <CVSROOT>]
[-A <author-conv-file>] [-p <options-for-cvsps>] [-P <file>] [-A <author-conv-file>] [-p <options-for-cvsps>] [-P <file>]
[-C <git_repository>] [-z <fuzz>] [-i] [-k] [-u] [-s <subst>] [-C <git-repository>] [-z <fuzz>] [-i] [-k] [-u] [-s <subst>]
[-a] [-m] [-M <regex>] [-S <regex>] [-L <commitlimit>] [-a] [-m] [-M <regex>] [-S <regex>] [-L <commit-limit>]
[-r <remote>] [-R] [<CVS_module>] [-r <remote>] [-R] [<CVS-module>]
DESCRIPTION DESCRIPTION
@ -59,7 +59,7 @@ OPTIONS
from `CVS/Root`. If no such file exists, it checks for the from `CVS/Root`. If no such file exists, it checks for the
`CVSROOT` environment variable. `CVSROOT` environment variable.
<CVS_module>:: <CVS-module>::
The CVS module you want to import. Relative to <CVSROOT>. The CVS module you want to import. Relative to <CVSROOT>.
If not given, 'git cvsimport' tries to read it from If not given, 'git cvsimport' tries to read it from
`CVS/Repository`. `CVS/Repository`.

View File

@ -9,7 +9,7 @@ git-diff-files - Compares files in the working tree and the index
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<common diff options>] [<path>...] 'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<common-diff-options>] [<path>...]
DESCRIPTION DESCRIPTION
----------- -----------

View File

@ -9,7 +9,7 @@ git-diff-index - Compare a tree to the working tree or index
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git diff-index' [-m] [--cached] [--merge-base] [<common diff options>] <tree-ish> [<path>...] 'git diff-index' [-m] [--cached] [--merge-base] [<common-diff-options>] <tree-ish> [<path>...]
DESCRIPTION DESCRIPTION
----------- -----------

View File

@ -11,7 +11,7 @@ SYNOPSIS
[verse] [verse]
'git diff-tree' [--stdin] [-m] [-s] [-v] [--no-commit-id] [--pretty] 'git diff-tree' [--stdin] [-m] [-s] [-v] [--no-commit-id] [--pretty]
[-t] [-r] [-c | --cc] [--combined-all-paths] [--root] [--merge-base] [-t] [-r] [-c | --cc] [--combined-all-paths] [--root] [--merge-base]
[<common diff options>] <tree-ish> [<tree-ish>] [<path>...] [<common-diff-options>] <tree-ish> [<tree-ish>] [<path>...]
DESCRIPTION DESCRIPTION
----------- -----------

View File

@ -9,7 +9,7 @@ git-init-db - Creates an empty Git repository
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>] [--separate-git-dir <git dir>] [--shared[=<permissions>]] 'git init-db' [-q | --quiet] [--bare] [--template=<template-directory>] [--separate-git-dir <git-dir>] [--shared[=<permissions>]]
DESCRIPTION DESCRIPTION

View File

@ -9,8 +9,8 @@ git-init - Create an empty Git repository or reinitialize an existing one
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git init' [-q | --quiet] [--bare] [--template=<template_directory>] 'git init' [-q | --quiet] [--bare] [--template=<template-directory>]
[--separate-git-dir <git dir>] [--object-format=<format>] [--separate-git-dir <git-dir>] [--object-format=<format>]
[-b <branch-name> | --initial-branch=<branch-name>] [-b <branch-name> | --initial-branch=<branch-name>]
[--shared[=<permissions>]] [<directory>] [--shared[=<permissions>]] [<directory>]
@ -57,12 +57,12 @@ values are 'sha1' and (if enabled) 'sha256'. 'sha1' is the default.
+ +
include::object-format-disclaimer.txt[] include::object-format-disclaimer.txt[]
--template=<template_directory>:: --template=<template-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.)
--separate-git-dir=<git dir>:: --separate-git-dir=<git-dir>::
Instead of initializing the repository as a directory to either `$GIT_DIR` or Instead of initializing the repository as a directory to either `$GIT_DIR` or
`./.git/`, create a text file there containing the path to the actual `./.git/`, create a text file there containing the path to the actual

View File

@ -9,7 +9,7 @@ git-log - Show commit logs
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git log' [<options>] [<revision range>] [[--] <path>...] 'git log' [<options>] [<revision-range>] [[--] <path>...]
DESCRIPTION DESCRIPTION
----------- -----------
@ -81,13 +81,13 @@ produced by `--stat`, etc.
include::line-range-options.txt[] include::line-range-options.txt[]
<revision range>:: <revision-range>::
Show only commits in the specified revision range. When no Show only commits in the specified revision range. When no
<revision range> is specified, it defaults to `HEAD` (i.e. the <revision-range> is specified, it defaults to `HEAD` (i.e. the
whole history leading to the current commit). `origin..HEAD` whole history leading to the current commit). `origin..HEAD`
specifies all the commits reachable from the current commit specifies all the commits reachable from the current commit
(i.e. `HEAD`), but not from `origin`. For a complete list of (i.e. `HEAD`), but not from `origin`. For a complete list of
ways to spell <revision range>, see the 'Specifying Ranges' ways to spell <revision-range>, see the 'Specifying Ranges'
section of linkgit:gitrevisions[7]. section of linkgit:gitrevisions[7].
[--] <path>...:: [--] <path>...::

View File

@ -9,10 +9,10 @@ git-p4 - Import from and submit to Perforce repositories
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git p4 clone' [<sync options>] [<clone options>] <p4 depot path>... 'git p4 clone' [<sync-options>] [<clone-options>] <p4-depot-path>...
'git p4 sync' [<sync options>] [<p4 depot path>...] 'git p4 sync' [<sync-options>] [<p4-depot-path>...]
'git p4 rebase' 'git p4 rebase'
'git p4 submit' [<submit options>] [<master branch name>] 'git p4 submit' [<submit-options>] [<master-branch-name>]
DESCRIPTION DESCRIPTION

View File

@ -8,7 +8,7 @@ git-shortlog - Summarize 'git log' output
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'git shortlog' [<options>] [<revision range>] [[--] <path>...] 'git shortlog' [<options>] [<revision-range>] [[--] <path>...]
git log --pretty=short | 'git shortlog' [<options>] git log --pretty=short | 'git shortlog' [<options>]
DESCRIPTION DESCRIPTION
@ -89,13 +89,13 @@ counts both authors and co-authors.
If width is `0` (zero) then indent the lines of the output without wrapping If width is `0` (zero) then indent the lines of the output without wrapping
them. them.
<revision range>:: <revision-range>::
Show only commits in the specified revision range. When no Show only commits in the specified revision range. When no
<revision range> is specified, it defaults to `HEAD` (i.e. the <revision-range> is specified, it defaults to `HEAD` (i.e. the
whole history leading to the current commit). `origin..HEAD` whole history leading to the current commit). `origin..HEAD`
specifies all the commits reachable from the current commit specifies all the commits reachable from the current commit
(i.e. `HEAD`), but not from `origin`. For a complete list of (i.e. `HEAD`), but not from `origin`. For a complete list of
ways to spell <revision range>, see the "Specifying Ranges" ways to spell <revision-range>, see the "Specifying Ranges"
section of linkgit:gitrevisions[7]. section of linkgit:gitrevisions[7].
[--] <path>...:: [--] <path>...::

View File

@ -575,7 +575,7 @@ 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'.

View File

@ -20,7 +20,7 @@ built-in formats:
* 'oneline' * 'oneline'
<hash> <title line> <hash> <title-line>
+ +
This is designed to be as compact as possible. This is designed to be as compact as possible.
@ -29,17 +29,17 @@ This is designed to be as compact as possible.
commit <hash> commit <hash>
Author: <author> Author: <author>
<title line> <title-line>
* 'medium' * 'medium'
commit <hash> commit <hash>
Author: <author> Author: <author>
Date: <author date> Date: <author-date>
<title line> <title-line>
<full commit message> <full-commit-message>
* 'full' * 'full'
@ -47,25 +47,25 @@ This is designed to be as compact as possible.
Author: <author> Author: <author>
Commit: <committer> Commit: <committer>
<title line> <title-line>
<full commit message> <full-commit-message>
* 'fuller' * 'fuller'
commit <hash> commit <hash>
Author: <author> Author: <author>
AuthorDate: <author date> AuthorDate: <author-date>
Commit: <committer> Commit: <committer>
CommitDate: <committer date> CommitDate: <committer-date>
<title line> <title-line>
<full commit message> <full-commit-message>
* 'reference' * 'reference'
<abbrev hash> (<title line>, <short author date>) <abbrev-hash> (<title-line>, <short-author-date>)
+ +
This format is used to refer to another commit in a commit message and This format is used to refer to another commit in a commit message and
is the same as `--pretty='format:%C(auto)%h (%s, %ad)'`. By default, is the same as `--pretty='format:%C(auto)%h (%s, %ad)'`. By default,
@ -78,10 +78,10 @@ placeholders, its output is not affected by other options like
From <hash> <date> From <hash> <date>
From: <author> From: <author>
Date: <author date> Date: <author-date>
Subject: [PATCH] <title line> Subject: [PATCH] <title-line>
<full commit message> <full-commit-message>
* 'mboxrd' * 'mboxrd'
+ +
@ -101,9 +101,9 @@ commits are displayed, but not the way the diff is shown e.g. with
`git log --raw`. To get full object names in a raw diff format, `git log --raw`. To get full object names in a raw diff format,
use `--no-abbrev`. use `--no-abbrev`.
* 'format:<string>' * 'format:<format-string>'
+ +
The 'format:<string>' format allows you to specify which information The 'format:<format-string>' format allows you to specify which information
you want to show. It works a little bit like printf format, you want to show. It works a little bit like printf format,
with the notable exception that you get a newline with '%n' with the notable exception that you get a newline with '%n'
instead of '\n'. instead of '\n'.
@ -273,12 +273,12 @@ endif::git-rev-list[]
If any option is provided multiple times the If any option is provided multiple times the
last occurrence wins. last occurrence wins.
+ +
The boolean options accept an optional value `[=<BOOL>]`. The values The boolean options accept an optional value `[=<value>]`. The values
`true`, `false`, `on`, `off` etc. are all accepted. See the "boolean" `true`, `false`, `on`, `off` etc. are all accepted. See the "boolean"
sub-section in "EXAMPLES" in linkgit:git-config[1]. If a boolean sub-section in "EXAMPLES" in linkgit:git-config[1]. If a boolean
option is given with no value, it's enabled. option is given with no value, it's enabled.
+ +
** 'key=<K>': only show trailers with specified key. Matching is done ** 'key=<key>': only show trailers with specified <key>. Matching is done
case-insensitively and trailing colon is optional. If option is case-insensitively and trailing colon is optional. If option is
given multiple times trailer lines matching any of the keys are given multiple times trailer lines matching any of the keys are
shown. This option automatically enables the `only` option so that shown. This option automatically enables the `only` option so that
@ -286,25 +286,25 @@ option is given with no value, it's enabled.
desired it can be disabled with `only=false`. E.g., desired it can be disabled with `only=false`. E.g.,
`%(trailers:key=Reviewed-by)` shows trailer lines with key `%(trailers:key=Reviewed-by)` shows trailer lines with key
`Reviewed-by`. `Reviewed-by`.
** 'only[=<BOOL>]': select whether non-trailer lines from the trailer ** 'only[=<bool>]': select whether non-trailer lines from the trailer
block should be included. block should be included.
** 'separator=<SEP>': specify a separator inserted between trailer ** 'separator=<sep>': specify a separator inserted between trailer
lines. When this option is not given each trailer line is lines. When this option is not given each trailer line is
terminated with a line feed character. The string SEP may contain terminated with a line feed character. The string <sep> may contain
the literal formatting codes described above. To use comma as the literal formatting codes described above. To use comma as
separator one must use `%x2C` as it would otherwise be parsed as separator one must use `%x2C` as it would otherwise be parsed as
next option. E.g., `%(trailers:key=Ticket,separator=%x2C )` next option. E.g., `%(trailers:key=Ticket,separator=%x2C )`
shows all trailer lines whose key is "Ticket" separated by a comma shows all trailer lines whose key is "Ticket" separated by a comma
and a space. and a space.
** 'unfold[=<BOOL>]': make it behave as if interpret-trailer's `--unfold` ** 'unfold[=<bool>]': make it behave as if interpret-trailer's `--unfold`
option was given. E.g., option was given. E.g.,
`%(trailers:only,unfold=true)` unfolds and shows all trailer lines. `%(trailers:only,unfold=true)` unfolds and shows all trailer lines.
** 'keyonly[=<BOOL>]': only show the key part of the trailer. ** 'keyonly[=<bool>]': only show the key part of the trailer.
** 'valueonly[=<BOOL>]': only show the value part of the trailer. ** 'valueonly[=<bool>]': only show the value part of the trailer.
** 'key_value_separator=<SEP>': specify a separator inserted between ** 'key_value_separator=<sep>': specify a separator inserted between
trailer lines. When this option is not given each trailer key-value trailer lines. When this option is not given each trailer key-value
pair is separated by ": ". Otherwise it shares the same semantics pair is separated by ": ". Otherwise it shares the same semantics
as 'separator=<SEP>' above. as 'separator=<sep>' above.
NOTE: Some placeholders may depend on other options given to the NOTE: Some placeholders may depend on other options given to the
revision traversal engine. For example, the `%g*` reflog options will revision traversal engine. For example, the `%g*` reflog options will