Skip to content

Commit 68ed71b

Browse files
Patapatapongitster
authored andcommitted
doc: format pathnames and URLs as monospace.
Applying CodingGuidelines about monospace on pathnames and URLs. See Documentation/CodingGuidelines.txt for more information. Signed-off-by: Corentin BOMPARD <[email protected]> Signed-off-by: Nathan BERBEZIER <[email protected]> Signed-off-by: Pablo CHABANNE <[email protected]> Signed-off-by: Matthieu MOY <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0dbd305 commit 68ed71b

17 files changed

+65
-65
lines changed

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
@@ -38,7 +38,7 @@ This may be either an absolute URL, or (if it begins with ./
3838
or ../), the location relative to the superproject's default remote
3939
repository (Please note that to specify a repository 'foo.git'
4040
which is located right next to a superproject 'bar.git', you'll
41-
have to use '../foo.git' instead of './foo.git' - as one might expect
41+
have to use `../foo.git` instead of `./foo.git` - as one might expect
4242
when following the rules for relative URLs - because the evaluation
4343
of relative URLs in Git is identical to that of relative directories).
4444
+

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:

Documentation/gitk.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ Files
168168
-----
169169
User configuration and preferences are stored at:
170170

171-
* '$XDG_CONFIG_HOME/git/gitk' if it exists, otherwise
172-
* '$HOME/.gitk' if it exists
171+
* `$XDG_CONFIG_HOME/git/gitk` if it exists, otherwise
172+
* `$HOME/.gitk` if it exists
173173

174-
If neither of the above exist then '$XDG_CONFIG_HOME/git/gitk' is created and
174+
If neither of the above exist then `$XDG_CONFIG_HOME/git/gitk` is created and
175175
used by default. If '$XDG_CONFIG_HOME' is not set it defaults to
176-
'$HOME/.config' in all cases.
176+
`$HOME/.config` in all cases.
177177

178178
History
179179
-------

0 commit comments

Comments
 (0)