Skip to content

Commit

Permalink
Merge branch 'mm/doc-tt'
Browse files Browse the repository at this point in the history
More mark-up updates to typeset strings that are expected to
literally typed by the end user in fixed-width font.

* mm/doc-tt:
  doc: typeset HEAD and variants as literal
  CodingGuidelines: formatting HEAD in documentation
  doc: typeset long options with argument as literal
  doc: typeset '--' as literal
  doc: typeset long command-line options as literal
  doc: typeset short command-line options as literal
  Documentation/git-mv.txt: fix whitespace indentation
  • Loading branch information
gitster committed Jul 13, 2016
2 parents fc8a3a6 + 661c3e9 commit ce18123
Show file tree
Hide file tree
Showing 62 changed files with 228 additions and 227 deletions.
5 changes: 3 additions & 2 deletions Documentation/CodingGuidelines
Expand Up @@ -527,12 +527,13 @@ Writing Documentation:
or commands:

Literal examples (e.g. use of command-line options, command names,
configuration and environment variables) must be typeset in monospace (i.e.
wrapped with backticks):
branch names, configuration and environment variables) must be
typeset in monospace (i.e. wrapped with backticks):
`--pretty=oneline`
`git rev-list`
`remote.pushDefault`
`GIT_DIR`
`HEAD`

An environment variable must be prefixed with "$" only when referring to its
value and not when referring to the variable itself, in this case there is
Expand Down
40 changes: 20 additions & 20 deletions Documentation/config.txt
Expand Up @@ -140,7 +140,7 @@ boolean::
false;; Boolean false can be spelled as `no`, `off`,
`false`, or `0`.
+
When converting value to the canonical form using '--bool' type
When converting value to the canonical form using `--bool` type
specifier; 'git config' will ensure that the output is "true" or
"false" (spelled in lowercase).

Expand Down Expand Up @@ -488,7 +488,7 @@ core.worktree::
If `GIT_COMMON_DIR` environment variable is set, core.worktree
is ignored and not used for determining the root of working tree.
This can be overridden by the `GIT_WORK_TREE` environment
variable and the '--work-tree' command-line option.
variable and the `--work-tree` command-line option.
The value can be an absolute path or relative to the path to
the .git directory, which is either specified by --git-dir
or GIT_DIR, or automatically discovered.
Expand Down Expand Up @@ -786,7 +786,7 @@ core.abbrev::
add.ignoreErrors::
add.ignore-errors (deprecated)::
Tells 'git add' to continue adding files when some files cannot be
added due to indexing errors. Equivalent to the '--ignore-errors'
added due to indexing errors. Equivalent to the `--ignore-errors`
option of linkgit:git-add[1]. `add.ignore-errors` is deprecated,
as it does not follow the usual naming convention for configuration
variables.
Expand All @@ -812,9 +812,9 @@ from the original current directory. See linkgit:git-rev-parse[1].

am.keepcr::
If true, git-am will call git-mailsplit for patches in mbox format
with parameter '--keep-cr'. In this case git-mailsplit will
with parameter `--keep-cr`. In this case git-mailsplit will
not remove `\r` from lines ending with `\r\n`. Can be overridden
by giving '--no-keep-cr' from the command line.
by giving `--no-keep-cr` from the command line.
See linkgit:git-am[1], linkgit:git-mailsplit[1].

am.threeWay::
Expand All @@ -827,15 +827,15 @@ am.threeWay::

apply.ignoreWhitespace::
When set to 'change', tells 'git apply' to ignore changes in
whitespace, in the same way as the '--ignore-space-change'
whitespace, in the same way as the `--ignore-space-change`
option.
When set to one of: no, none, never, false tells 'git apply' to
respect all whitespace differences.
See linkgit:git-apply[1].

apply.whitespace::
Tells 'git apply' how to handle whitespaces, in the same way
as the '--whitespace' option. See linkgit:git-apply[1].
as the `--whitespace` option. See linkgit:git-apply[1].

branch.autoSetupMerge::
Tells 'git branch' and 'git checkout' to set up new branches
Expand Down Expand Up @@ -937,7 +937,7 @@ browser.<tool>.cmd::

browser.<tool>.path::
Override the path for the given tool that may be used to
browse HTML help (see '-w' option in linkgit:git-help[1]) or a
browse HTML help (see `-w` option in linkgit:git-help[1]) or a
working repository in gitweb (see linkgit:git-instaweb[1]).

clean.requireForce::
Expand Down Expand Up @@ -1436,9 +1436,9 @@ gitcvs.logFile::

gitcvs.usecrlfattr::
If true, the server will look up the end-of-line conversion
attributes for files to determine the '-k' modes to use. If
attributes for files to determine the `-k` modes to use. If
the attributes force Git to treat a file as text,
the '-k' mode will be left blank so CVS clients will
the `-k` mode will be left blank so CVS clients will
treat it as text. If they suppress text conversion, the file
will be set with '-kb' mode, which suppresses any newline munging
the client might otherwise do. If the attributes do not allow
Expand Down Expand Up @@ -1508,16 +1508,16 @@ gitweb.snapshot::
See linkgit:gitweb.conf[5] for description.

grep.lineNumber::
If set to true, enable '-n' option by default.
If set to true, enable `-n` option by default.

grep.patternType::
Set the default matching behavior. Using a value of 'basic', 'extended',
'fixed', or 'perl' will enable the '--basic-regexp', '--extended-regexp',
'--fixed-strings', or '--perl-regexp' option accordingly, while the
'fixed', or 'perl' will enable the `--basic-regexp`, `--extended-regexp`,
`--fixed-strings`, or `--perl-regexp` option accordingly, while the
value 'default' will return to the default matching behavior.

grep.extendedRegexp::
If set to true, enable '--extended-regexp' option by default. This
If set to true, enable `--extended-regexp` option by default. This
option is ignored when the `grep.patternType` option is set to a value
other than 'default'.

Expand Down Expand Up @@ -1974,7 +1974,7 @@ log.decorate::
specified, the full ref name (including prefix) will be printed.
If 'auto' is specified, then if the output is going to a terminal,
the ref names are shown as if 'short' were given, otherwise no ref
names are shown. This is the same as the '--decorate' option
names are shown. This is the same as the `--decorate` option
of the `git log`.

log.follow::
Expand Down Expand Up @@ -2357,16 +2357,16 @@ new default).
--

push.followTags::
If set to true enable '--follow-tags' option by default. You
If set to true enable `--follow-tags` option by default. You
may override this configuration at time of push by specifying
'--no-follow-tags'.
`--no-follow-tags`.

push.gpgSign::
May be set to a boolean value, or the string 'if-asked'. A true
value causes all pushes to be GPG signed, as if '--signed' is
value causes all pushes to be GPG signed, as if `--signed` is
passed to linkgit:git-push[1]. The string 'if-asked' causes
pushes to be signed if the server supports it, as if
'--signed=if-asked' is passed to 'git push'. A false value may
`--signed=if-asked` is passed to 'git push'. A false value may
override a value from a lower-priority config file. An explicit
command-line flag always overrides this config option.

Expand All @@ -2389,7 +2389,7 @@ rebase.stat::
rebase. False by default.

rebase.autoSquash::
If set to true enable '--autosquash' option by default.
If set to true enable `--autosquash` option by default.

rebase.autoStash::
When set to true, automatically create a temporary stash
Expand Down
2 changes: 1 addition & 1 deletion Documentation/diff-config.txt
Expand Up @@ -105,7 +105,7 @@ diff.orderFile::

diff.renameLimit::
The number of files to consider when performing the copy/rename
detection; equivalent to the 'git diff' option '-l'.
detection; equivalent to the 'git diff' option `-l`.

diff.renames::
Whether and how Git detects renames. If set to "false",
Expand Down
8 changes: 4 additions & 4 deletions Documentation/diff-format.txt
Expand Up @@ -46,11 +46,11 @@ That is, from the left to the right:
. sha1 for "dst"; 0\{40\} if creation, unmerged or "look at work tree".
. a space.
. status, followed by optional "score" number.
. a tab or a NUL when '-z' option is used.
. a tab or a NUL when `-z` option is used.
. path for "src"
. a tab or a NUL when '-z' option is used; only exists for C or R.
. a tab or a NUL when `-z` option is used; only exists for C or R.
. path for "dst"; only exists for C or R.
. an LF or a NUL when '-z' option is used, to terminate the record.
. an LF or a NUL when `-z` option is used, to terminate the record.

Possible status letters are:

Expand Down Expand Up @@ -86,7 +86,7 @@ diff format for merges
----------------------

"git-diff-tree", "git-diff-files" and "git-diff --raw"
can take '-c' or '--cc' option
can take `-c` or `--cc` option
to generate diff output also for merge commits. The output differs
from the format described above in the following way:

Expand Down
6 changes: 3 additions & 3 deletions Documentation/diff-generate-patch.txt
Expand Up @@ -2,7 +2,7 @@ Generating patches with -p
--------------------------

When "git-diff-index", "git-diff-tree", or "git-diff-files" are run
with a '-p' option, "git diff" without the '--raw' option, or
with a `-p` option, "git diff" without the `--raw` option, or
"git log" with the "-p" option, they
do not produce the output described above; instead they produce a
patch file. You can customize the creation of such patches via the
Expand Down Expand Up @@ -114,11 +114,11 @@ index fabadb8,cc95eb0..4866510
------------

1. It is preceded with a "git diff" header, that looks like
this (when '-c' option is used):
this (when `-c` option is used):

diff --combined file
+
or like this (when '--cc' option is used):
or like this (when `--cc` option is used):

diff --cc file

Expand Down
6 changes: 3 additions & 3 deletions Documentation/fetch-options.txt
Expand Up @@ -88,7 +88,7 @@ ifndef::git-pull[]
to whatever else would otherwise be fetched. Using this
option alone does not subject tags to pruning, even if --prune
is used (though tags may be pruned anyway if they are also the
destination of an explicit refspec; see '--prune').
destination of an explicit refspec; see `--prune`).

--recurse-submodules[=yes|on-demand|no]::
This option controls if and under what conditions new commits of
Expand All @@ -110,7 +110,7 @@ ifndef::git-pull[]

--no-recurse-submodules::
Disable recursive fetching of submodules (this has the same effect as
using the '--recurse-submodules=no' option).
using the `--recurse-submodules=no` option).

--submodule-prefix=<path>::
Prepend <path> to paths printed in informative messages
Expand All @@ -137,7 +137,7 @@ endif::git-pull[]

--upload-pack <upload-pack>::
When given, and the repository to fetch from is handled
by 'git fetch-pack', '--exec=<upload-pack>' is passed to
by 'git fetch-pack', `--exec=<upload-pack>` is passed to
the command to specify non-default path for the command
run on the other end.

Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-am.txt
Expand Up @@ -199,12 +199,12 @@ When initially invoking `git am`, you give it the names of the mailboxes
to process. Upon seeing the first patch that does not apply, it
aborts in the middle. You can recover from this in one of two ways:

. skip the current patch by re-running the command with the '--skip'
. skip the current patch by re-running the command with the `--skip`
option.

. hand resolve the conflict in the working directory, and update
the index file to bring it into a state that the patch should
have produced. Then run the command with the '--continue' option.
have produced. Then run the command with the `--continue` option.

The command refuses to process new mailboxes until the current
operation is finished, so if you decide to start over from scratch,
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-bisect.txt
Expand Up @@ -358,7 +358,7 @@ OPTIONS
--no-checkout::
+
Do not checkout the new working tree at each iteration of the bisection
process. Instead just update a special reference named 'BISECT_HEAD' to make
process. Instead just update a special reference named `BISECT_HEAD` to make
it point to the commit that should be tested.
+
This option may be useful when the test you would perform in each step
Expand Down
6 changes: 3 additions & 3 deletions Documentation/git-branch.txt
Expand Up @@ -39,10 +39,10 @@ named commit). With `--merged`, only branches merged into the named
commit (i.e. the branches whose tip commits are reachable from the named
commit) will be listed. With `--no-merged` only branches not merged into
the named commit will be listed. If the <commit> argument is missing it
defaults to 'HEAD' (i.e. the tip of the current branch).
defaults to `HEAD` (i.e. the tip of the current branch).

The command's second form creates a new branch head named <branchname>
which points to the current 'HEAD', or <start-point> if given.
which points to the current `HEAD`, or <start-point> if given.

Note that this will create the new branch, but it will not switch the
working tree to it; use "git checkout <newbranch>" to switch to the
Expand Down Expand Up @@ -172,7 +172,7 @@ This option is only applicable in non-verbose mode.
+
This behavior is the default when the start point is a remote-tracking branch.
Set the branch.autoSetupMerge configuration variable to `false` if you
want `git checkout` and `git branch` to always behave as if '--no-track'
want `git checkout` and `git branch` to always behave as if `--no-track`
were given. Set it to `always` if you want this behavior when the
start-point is either a local or remote-tracking branch.

Expand Down
12 changes: 6 additions & 6 deletions Documentation/git-cat-file.txt
Expand Up @@ -15,8 +15,8 @@ SYNOPSIS
DESCRIPTION
-----------
In its first form, the command provides the content or the type of an object in
the repository. The type is required unless '-t' or '-p' is used to find the
object type, or '-s' is used to find the object size, or '--textconv' is used
the repository. The type is required unless `-t` or `-p` is used to find the
object type, or `-s` is used to find the object size, or `--textconv` is used
(which implies type "blob").

In the second form, a list of objects (separated by linefeeds) is provided on
Expand Down Expand Up @@ -144,13 +144,13 @@ respectively print:

OUTPUT
------
If '-t' is specified, one of the <type>.
If `-t` is specified, one of the <type>.

If '-s' is specified, the size of the <object> in bytes.
If `-s` is specified, the size of the <object> in bytes.

If '-e' is specified, no output.
If `-e` is specified, no output.

If '-p' is specified, the contents of <object> are pretty-printed.
If `-p` is specified, the contents of <object> are pretty-printed.

If <type> is specified, the raw (though uncompressed) contents of the <object>
will be returned.
Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-checkout.txt
Expand Up @@ -157,15 +157,15 @@ of it").
When creating a new branch, set up "upstream" configuration. See
"--track" in linkgit:git-branch[1] for details.
+
If no '-b' option is given, the name of the new branch will be
If no `-b` option is given, the name of the new branch will be
derived from the remote-tracking branch, by looking at the local part of
the refspec configured for the corresponding remote, and then stripping
the initial part up to the "*".
This would tell us to use "hack" as the local branch when branching
off of "origin/hack" (or "remotes/origin/hack", or even
"refs/remotes/origin/hack"). If the given name has no slash, or the above
guessing results in an empty name, the guessing is aborted. You can
explicitly give a name with '-b' in such a case.
explicitly give a name with `-b` in such a case.

--no-track::
Do not set up "upstream" configuration, even if the
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-cherry-pick.txt
Expand Up @@ -47,7 +47,7 @@ OPTIONS
For a more complete list of ways to spell commits, see
linkgit:gitrevisions[7].
Sets of commits can be passed but no traversal is done by
default, as if the '--no-walk' option was specified, see
default, as if the `--no-walk` option was specified, see
linkgit:git-rev-list[1]. Note that specifying a range will
feed all <commit>... arguments to a single revision walk
(see a later example that uses 'maint master..next').
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-clean.txt
Expand Up @@ -16,7 +16,7 @@ DESCRIPTION
Cleans the working tree by recursively removing files that are not
under version control, starting from the current directory.

Normally, only files unknown to Git are removed, but if the '-x'
Normally, only files unknown to Git are removed, but if the `-x`
option is specified, ignored files are also removed. This can, for
example, be useful to remove all build products.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-commit-tree.txt
Expand Up @@ -44,7 +44,7 @@ OPTIONS
An existing tree object

-p <parent>::
Each '-p' indicates the id of a parent commit object.
Each `-p` indicates the id of a parent commit object.

-m <message>::
A paragraph in the commit log message. This can be given more than
Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-commit.txt
Expand Up @@ -75,7 +75,7 @@ OPTIONS

-c <commit>::
--reedit-message=<commit>::
Like '-C', but with '-c' the editor is invoked, so that
Like '-C', but with `-c` the editor is invoked, so that
the user can further edit the commit message.

--fixup=<commit>::
Expand Down Expand Up @@ -260,7 +260,7 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
staged for other paths. This is the default mode of operation of
'git commit' if any paths are given on the command line,
in which case this option can be omitted.
If this option is specified together with '--amend', then
If this option is specified together with `--amend`, then
no paths need to be specified, which can be used to amend
the last commit without committing changes that have
already been staged.
Expand Down

0 comments on commit ce18123

Please sign in to comment.