Skip to content

Commit 6b42805

Browse files
committed
Merge branch 'cb/doco-mono'
Clean-up markup in the documentation suite. * cb/doco-mono: doc: format pathnames and URLs as monospace. doc/CodingGuidelines: URLs and paths as monospace
2 parents 8aed803 + 68ed71b commit 6b42805

18 files changed

+70
-67
lines changed

Documentation/CodingGuidelines

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,11 +580,14 @@ Writing Documentation:
580580
or commands:
581581

582582
Literal examples (e.g. use of command-line options, command names,
583-
branch names, configuration and environment variables) must be
584-
typeset in monospace (i.e. wrapped with backticks):
583+
branch names, URLs, pathnames (files and directories), configuration and
584+
environment variables) must be typeset in monospace (i.e. wrapped with
585+
backticks):
585586
`--pretty=oneline`
586587
`git rev-list`
587588
`remote.pushDefault`
589+
`http://git.example.com`
590+
`.git/config`
588591
`GIT_DIR`
589592
`HEAD`
590593

Documentation/SubmittingPatches

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,15 @@ such as "Thanks-to:", "Based-on-patch-by:", or "Mentored-by:".
372372
Some parts of the system have dedicated maintainers with their own
373373
repositories.
374374

375-
- 'git-gui/' comes from git-gui project, maintained by Pat Thoyts:
375+
- `git-gui/` comes from git-gui project, maintained by Pat Thoyts:
376376

377377
git://repo.or.cz/git-gui.git
378378

379-
- 'gitk-git/' comes from Paul Mackerras's gitk project:
379+
- `gitk-git/` comes from Paul Mackerras's gitk project:
380380

381381
git://ozlabs.org/~paulus/gitk
382382

383-
- 'po/' comes from the localization coordinator, Jiang Xin:
383+
- `po/` comes from the localization coordinator, Jiang Xin:
384384

385385
https://github.com/git-l10n/git-po/
386386

Documentation/config/core.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ Common unit suffixes of 'k', 'm', or 'g' are supported.
414414
core.excludesFile::
415415
Specifies the pathname to the file that contains patterns to
416416
describe paths that are not meant to be tracked, in addition
417-
to '.gitignore' (per-directory) and '.git/info/exclude'.
417+
to `.gitignore` (per-directory) and `.git/info/exclude`.
418418
Defaults to `$XDG_CONFIG_HOME/git/ignore`.
419419
If `$XDG_CONFIG_HOME` is either not set or empty, `$HOME/.config/git/ignore`
420420
is used instead. See linkgit:gitignore[5].
@@ -429,19 +429,19 @@ core.askPass::
429429
command-line argument and write the password on its STDOUT.
430430

431431
core.attributesFile::
432-
In addition to '.gitattributes' (per-directory) and
433-
'.git/info/attributes', Git looks into this file for attributes
432+
In addition to `.gitattributes` (per-directory) and
433+
`.git/info/attributes`, Git looks into this file for attributes
434434
(see linkgit:gitattributes[5]). Path expansions are made the same
435435
way as for `core.excludesFile`. Its default value is
436436
`$XDG_CONFIG_HOME/git/attributes`. If `$XDG_CONFIG_HOME` is either not
437437
set or empty, `$HOME/.config/git/attributes` is used instead.
438438

439439
core.hooksPath::
440440
By default Git will look for your hooks in the
441-
'$GIT_DIR/hooks' directory. Set this to different path,
442-
e.g. '/etc/git/hooks', and Git will try to find your hooks in
443-
that directory, e.g. '/etc/git/hooks/pre-receive' instead of
444-
in '$GIT_DIR/hooks/pre-receive'.
441+
`$GIT_DIR/hooks` directory. Set this to different path,
442+
e.g. `/etc/git/hooks`, and Git will try to find your hooks in
443+
that directory, e.g. `/etc/git/hooks/pre-receive` instead of
444+
in `$GIT_DIR/hooks/pre-receive`.
445445
+
446446
The path can be either absolute or relative. A relative path is
447447
taken as relative to the directory where the hooks are run (see

Documentation/git-daemon.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ OPTIONS
5757
This is sort of "Git root" - if you run 'git daemon' with
5858
'--base-path=/srv/git' on example.com, then if you later try to pull
5959
'git://example.com/hello.git', 'git daemon' will interpret the path
60-
as '/srv/git/hello.git'.
60+
as `/srv/git/hello.git`.
6161

6262
--base-path-relaxed::
6363
If --base-path is enabled and repo lookup fails, with this option

Documentation/git-filter-branch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ to other tags will be rewritten to point to the underlying commit.
189189
rewriting. When applying a tree filter, the command needs to
190190
temporarily check out the tree to some directory, which may consume
191191
considerable space in case of large projects. By default it
192-
does this in the '.git-rewrite/' directory but you can override
192+
does this in the `.git-rewrite/` directory but you can override
193193
that choice by this parameter.
194194

195195
-f::

Documentation/git-help.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ variable, we launch 'kfmclient' to try to open the man page on an
171171
already opened konqueror in a new tab if possible.
172172

173173
For consistency, we also try such a trick if 'man.konqueror.path' is
174-
set to something like 'A_PATH_TO/konqueror'. That means we will try to
175-
launch 'A_PATH_TO/kfmclient' instead.
174+
set to something like `A_PATH_TO/konqueror`. That means we will try to
175+
launch `A_PATH_TO/kfmclient` instead.
176176

177177
If you really want to use 'konqueror', then you can use something like
178178
the following:

Documentation/git-ls-tree.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ in the current working directory. Note that:
2727
taken as relative to the current working directory. E.g. when you are
2828
in a directory 'sub' that has a directory 'dir', you can run 'git
2929
ls-tree -r HEAD dir' to list the contents of the tree (that is
30-
'sub/dir' in `HEAD`). You don't want to give a tree that is not at the
30+
`sub/dir` in `HEAD`). You don't want to give a tree that is not at the
3131
root level (e.g. `git ls-tree -r HEAD:sub dir`) in this case, as that
32-
would result in asking for 'sub/sub/dir' in the `HEAD` commit.
32+
would result in asking for `sub/sub/dir` in the `HEAD` commit.
3333
However, the current working directory can be ignored by passing
3434
--full-tree option.
3535

Documentation/git-remote-ext.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ begins with `ext::`. Examples:
104104
link-level address).
105105

106106
"ext::git-server-alias foo %G/repo% with% spaces %Vfoo"::
107-
Represents a repository with path '/repo with spaces' accessed
107+
Represents a repository with path `/repo with spaces` accessed
108108
using the helper program "git-server-alias foo". The hostname for
109109
the remote server passed in the protocol stream will be "foo"
110110
(this allows multiple virtual Git servers to share a

Documentation/git-submodule.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This may be either an absolute URL, or (if it begins with ./
4242
or ../), the location relative to the superproject's default remote
4343
repository (Please note that to specify a repository 'foo.git'
4444
which is located right next to a superproject 'bar.git', you'll
45-
have to use '../foo.git' instead of './foo.git' - as one might expect
45+
have to use `../foo.git` instead of `./foo.git` - as one might expect
4646
when following the rules for relative URLs - because the evaluation
4747
of relative URLs in Git is identical to that of relative directories).
4848
+

Documentation/git-web--browse.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ configuration variable, we launch 'kfmclient' to try to open the HTML
9292
man page on an already opened konqueror in a new tab if possible.
9393

9494
For consistency, we also try such a trick if 'browser.konqueror.path' is
95-
set to something like 'A_PATH_TO/konqueror'. That means we will try to
96-
launch 'A_PATH_TO/kfmclient' instead.
95+
set to something like `A_PATH_TO/konqueror`. That means we will try to
96+
launch `A_PATH_TO/kfmclient` instead.
9797

9898
If you really want to use 'konqueror', then you can use something like
9999
the following:

0 commit comments

Comments
 (0)