Skip to content

Commit 073d0b0

Browse files
committed
Merge branch 'tr/doc-tt' into maint
The documentation set has been updated so that literal commands, configuration variables and environment variables are consistently typeset in fixed-width font and bold in manpages. * tr/doc-tt: doc: change configuration variables format doc: more consistency in environment variables format doc: change environment variables format doc: clearer rule about formatting literals
2 parents a199a7c + ae9f631 commit 073d0b0

36 files changed

+224
-217
lines changed

Documentation/CodingGuidelines

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,12 +526,19 @@ Writing Documentation:
526526
modifying paragraphs or option/command explanations that contain options
527527
or commands:
528528

529-
Literal examples (e.g. use of command-line options, command names, and
530-
configuration variables) are typeset in monospace, and if you can use
531-
`backticks around word phrases`, do so.
529+
Literal examples (e.g. use of command-line options, command names,
530+
configuration and environment variables) must be typeset in monospace (i.e.
531+
wrapped with backticks):
532532
`--pretty=oneline`
533533
`git rev-list`
534534
`remote.pushDefault`
535+
`GIT_DIR`
536+
537+
An environment variable must be prefixed with "$" only when referring to its
538+
value and not when referring to the variable itself, in this case there is
539+
nothing to add except the backticks:
540+
`GIT_DIR` is specified
541+
`$GIT_DIR/hooks/pre-receive`
535542

536543
Word phrases enclosed in `backtick characters` are rendered literally
537544
and will not be further expanded. The use of `backticks` to achieve the

Documentation/config.txt

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ core.gitProxy::
434434
may be set multiple times and is matched in the given order;
435435
the first match wins.
436436
+
437-
Can be overridden by the 'GIT_PROXY_COMMAND' environment variable
437+
Can be overridden by the `GIT_PROXY_COMMAND` environment variable
438438
(which always applies universally, without the special "for"
439439
handling).
440440
+
@@ -478,9 +478,9 @@ false), while all other repositories are assumed to be bare (bare
478478

479479
core.worktree::
480480
Set the path to the root of the working tree.
481-
If GIT_COMMON_DIR environment variable is set, core.worktree
481+
If `GIT_COMMON_DIR` environment variable is set, core.worktree
482482
is ignored and not used for determining the root of working tree.
483-
This can be overridden by the GIT_WORK_TREE environment
483+
This can be overridden by the `GIT_WORK_TREE` environment
484484
variable and the '--work-tree' command-line option.
485485
The value can be an absolute path or relative to the path to
486486
the .git directory, which is either specified by --git-dir
@@ -545,7 +545,7 @@ core.compression::
545545
-1 is the zlib default. 0 means no compression,
546546
and 1..9 are various speed/size tradeoffs, 9 being slowest.
547547
If set, this provides a default to other compression variables,
548-
such as 'core.looseCompression' and 'pack.compression'.
548+
such as `core.looseCompression` and `pack.compression`.
549549

550550
core.looseCompression::
551551
An integer -1..9, indicating the compression level for objects that
@@ -619,9 +619,9 @@ core.excludesFile::
619619
core.askPass::
620620
Some commands (e.g. svn and http interfaces) that interactively
621621
ask for a password can be told to use an external program given
622-
via the value of this variable. Can be overridden by the 'GIT_ASKPASS'
622+
via the value of this variable. Can be overridden by the `GIT_ASKPASS`
623623
environment variable. If not set, fall back to the value of the
624-
'SSH_ASKPASS' environment variable or, failing that, a simple password
624+
`SSH_ASKPASS` environment variable or, failing that, a simple password
625625
prompt. The external program shall be given a suitable prompt as
626626
command-line argument and write the password on its STDOUT.
627627

@@ -764,7 +764,7 @@ core.notesRef::
764764
notes should be printed.
765765
+
766766
This setting defaults to "refs/notes/commits", and it can be overridden by
767-
the 'GIT_NOTES_REF' environment variable. See linkgit:git-notes[1].
767+
the `GIT_NOTES_REF` environment variable. See linkgit:git-notes[1].
768768

769769
core.sparseCheckout::
770770
Enable "sparse checkout" feature. See section "Sparse checkout" in
@@ -800,7 +800,7 @@ it will be treated as a shell command. For example, defining
800800
"gitk --all --not ORIG_HEAD". Note that shell commands will be
801801
executed from the top-level directory of a repository, which may
802802
not necessarily be the current directory.
803-
'GIT_PREFIX' is set as returned by running 'git rev-parse --show-prefix'
803+
`GIT_PREFIX` is set as returned by running 'git rev-parse --show-prefix'
804804
from the original current directory. See linkgit:git-rev-parse[1].
805805

806806
am.keepcr::
@@ -1426,18 +1426,18 @@ gitcvs.usecrlfattr::
14261426
treat it as text. If they suppress text conversion, the file
14271427
will be set with '-kb' mode, which suppresses any newline munging
14281428
the client might otherwise do. If the attributes do not allow
1429-
the file type to be determined, then 'gitcvs.allBinary' is
1429+
the file type to be determined, then `gitcvs.allBinary` is
14301430
used. See linkgit:gitattributes[5].
14311431

14321432
gitcvs.allBinary::
1433-
This is used if 'gitcvs.usecrlfattr' does not resolve
1433+
This is used if `gitcvs.usecrlfattr` does not resolve
14341434
the correct '-kb' mode to use. If true, all
14351435
unresolved files are sent to the client in
14361436
mode '-kb'. This causes the client to treat them
14371437
as binary files, which suppresses any newline munging it
14381438
otherwise might do. Alternatively, if it is set to "guess",
14391439
then the contents of the file are examined to decide if
1440-
it is binary, similar to 'core.autocrlf'.
1440+
it is binary, similar to `core.autocrlf`.
14411441

14421442
gitcvs.dbName::
14431443
Database used by git-cvsserver to cache revision information
@@ -1456,7 +1456,7 @@ gitcvs.dbDriver::
14561456
See linkgit:git-cvsserver[1].
14571457

14581458
gitcvs.dbUser, gitcvs.dbPass::
1459-
Database user and password. Only useful if setting 'gitcvs.dbDriver',
1459+
Database user and password. Only useful if setting `gitcvs.dbDriver`,
14601460
since SQLite has no concept of database users and/or passwords.
14611461
'gitcvs.dbUser' supports variable substitution (see
14621462
linkgit:git-cvsserver[1] for details).
@@ -1468,8 +1468,8 @@ gitcvs.dbTableNamePrefix::
14681468
linkgit:git-cvsserver[1] for details). Any non-alphabetic
14691469
characters will be replaced with underscores.
14701470

1471-
All gitcvs variables except for 'gitcvs.usecrlfattr' and
1472-
'gitcvs.allBinary' can also be specified as
1471+
All gitcvs variables except for `gitcvs.usecrlfattr` and
1472+
`gitcvs.allBinary` can also be specified as
14731473
'gitcvs.<access_method>.<varname>' (where 'access_method'
14741474
is one of "ext" and "pserver") to make them apply only for the given
14751475
access method.
@@ -1502,7 +1502,7 @@ grep.patternType::
15021502

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

15081508
grep.threads::
@@ -1587,7 +1587,7 @@ guitool.<name>.cmd::
15871587
of the linkgit:git-gui[1] `Tools` menu is invoked. This option is
15881588
mandatory for every tool. The command is executed from the root of
15891589
the working directory, and in the environment it receives the name of
1590-
the tool as 'GIT_GUITOOL', the name of the currently selected file as
1590+
the tool as `GIT_GUITOOL`, the name of the currently selected file as
15911591
'FILENAME', and the name of the current branch as 'CUR_BRANCH' (if
15921592
the head is detached, 'CUR_BRANCH' is empty).
15931593

@@ -1608,15 +1608,15 @@ guitool.<name>.confirm::
16081608

16091609
guitool.<name>.argPrompt::
16101610
Request a string argument from the user, and pass it to the tool
1611-
through the 'ARGS' environment variable. Since requesting an
1611+
through the `ARGS` environment variable. Since requesting an
16121612
argument implies confirmation, the 'confirm' option has no effect
16131613
if this is enabled. If the option is set to 'true', 'yes', or '1',
16141614
the dialog uses a built-in generic prompt; otherwise the exact
16151615
value of the variable is used.
16161616

16171617
guitool.<name>.revPrompt::
16181618
Request a single valid revision from the user, and set the
1619-
'REVISION' environment variable. In other aspects this option
1619+
`REVISION` environment variable. In other aspects this option
16201620
is similar to 'argPrompt', and can be used together with it.
16211621

16221622
guitool.<name>.revUnmerged::
@@ -1672,7 +1672,7 @@ http.proxyAuthMethod::
16721672
only takes effect if the configured proxy string contains a user name part
16731673
(i.e. is of the form 'user@host' or 'user@host:port'). This can be
16741674
overridden on a per-remote basis; see `remote.<name>.proxyAuthMethod`.
1675-
Both can be overridden by the 'GIT_HTTP_PROXY_AUTHMETHOD' environment
1675+
Both can be overridden by the `GIT_HTTP_PROXY_AUTHMETHOD` environment
16761676
variable. Possible values are:
16771677
+
16781678
--
@@ -1731,9 +1731,9 @@ http.sslVersion::
17311731
- tlsv1.2
17321732

17331733
+
1734-
Can be overridden by the 'GIT_SSL_VERSION' environment variable.
1734+
Can be overridden by the `GIT_SSL_VERSION` environment variable.
17351735
To force git to use libcurl's default ssl version and ignore any
1736-
explicit http.sslversion option, set 'GIT_SSL_VERSION' to the
1736+
explicit http.sslversion option, set `GIT_SSL_VERSION` to the
17371737
empty string.
17381738

17391739
http.sslCipherList::
@@ -1744,41 +1744,41 @@ http.sslCipherList::
17441744
option; see the libcurl documentation for more details on the format
17451745
of this list.
17461746
+
1747-
Can be overridden by the 'GIT_SSL_CIPHER_LIST' environment variable.
1747+
Can be overridden by the `GIT_SSL_CIPHER_LIST` environment variable.
17481748
To force git to use libcurl's default cipher list and ignore any
1749-
explicit http.sslCipherList option, set 'GIT_SSL_CIPHER_LIST' to the
1749+
explicit http.sslCipherList option, set `GIT_SSL_CIPHER_LIST` to the
17501750
empty string.
17511751

17521752
http.sslVerify::
17531753
Whether to verify the SSL certificate when fetching or pushing
1754-
over HTTPS. Can be overridden by the 'GIT_SSL_NO_VERIFY' environment
1754+
over HTTPS. Can be overridden by the `GIT_SSL_NO_VERIFY` environment
17551755
variable.
17561756

17571757
http.sslCert::
17581758
File containing the SSL certificate when fetching or pushing
1759-
over HTTPS. Can be overridden by the 'GIT_SSL_CERT' environment
1759+
over HTTPS. Can be overridden by the `GIT_SSL_CERT` environment
17601760
variable.
17611761

17621762
http.sslKey::
17631763
File containing the SSL private key when fetching or pushing
1764-
over HTTPS. Can be overridden by the 'GIT_SSL_KEY' environment
1764+
over HTTPS. Can be overridden by the `GIT_SSL_KEY` environment
17651765
variable.
17661766

17671767
http.sslCertPasswordProtected::
17681768
Enable Git's password prompt for the SSL certificate. Otherwise
17691769
OpenSSL will prompt the user, possibly many times, if the
17701770
certificate or private key is encrypted. Can be overridden by the
1771-
'GIT_SSL_CERT_PASSWORD_PROTECTED' environment variable.
1771+
`GIT_SSL_CERT_PASSWORD_PROTECTED` environment variable.
17721772

17731773
http.sslCAInfo::
17741774
File containing the certificates to verify the peer with when
17751775
fetching or pushing over HTTPS. Can be overridden by the
1776-
'GIT_SSL_CAINFO' environment variable.
1776+
`GIT_SSL_CAINFO` environment variable.
17771777

17781778
http.sslCAPath::
17791779
Path containing files with the CA certificates to verify the peer
17801780
with when fetching or pushing over HTTPS. Can be overridden
1781-
by the 'GIT_SSL_CAPATH' environment variable.
1781+
by the `GIT_SSL_CAPATH` environment variable.
17821782

17831783
http.pinnedpubkey::
17841784
Public key of the https service. It may either be the filename of
@@ -1798,7 +1798,7 @@ http.sslTry::
17981798

17991799
http.maxRequests::
18001800
How many HTTP requests to launch in parallel. Can be overridden
1801-
by the 'GIT_HTTP_MAX_REQUESTS' environment variable. Default is 5.
1801+
by the `GIT_HTTP_MAX_REQUESTS` environment variable. Default is 5.
18021802

18031803
http.minSessions::
18041804
The number of curl sessions (counted across slots) to be kept across
@@ -1817,13 +1817,13 @@ http.postBuffer::
18171817
http.lowSpeedLimit, http.lowSpeedTime::
18181818
If the HTTP transfer speed is less than 'http.lowSpeedLimit'
18191819
for longer than 'http.lowSpeedTime' seconds, the transfer is aborted.
1820-
Can be overridden by the 'GIT_HTTP_LOW_SPEED_LIMIT' and
1821-
'GIT_HTTP_LOW_SPEED_TIME' environment variables.
1820+
Can be overridden by the `GIT_HTTP_LOW_SPEED_LIMIT` and
1821+
`GIT_HTTP_LOW_SPEED_TIME` environment variables.
18221822

18231823
http.noEPSV::
18241824
A boolean which disables using of EPSV ftp command by curl.
18251825
This can helpful with some "poor" ftp servers which don't
1826-
support EPSV mode. Can be overridden by the 'GIT_CURL_FTP_NO_EPSV'
1826+
support EPSV mode. Can be overridden by the `GIT_CURL_FTP_NO_EPSV`
18271827
environment variable. Default is false (curl will use EPSV).
18281828

18291829
http.userAgent::
@@ -1833,7 +1833,7 @@ http.userAgent::
18331833
such as Mozilla/4.0. This may be necessary, for instance, if
18341834
connecting through a firewall that restricts HTTP connections to a set
18351835
of common USER_AGENT strings (but not including those like git/1.7.1).
1836-
Can be overridden by the 'GIT_HTTP_USER_AGENT' environment variable.
1836+
Can be overridden by the `GIT_HTTP_USER_AGENT` environment variable.
18371837

18381838
http.<url>.*::
18391839
Any of the http.* options above can be applied selectively to some URLs.
@@ -2630,7 +2630,7 @@ sendemail.identity::
26302630
A configuration identity. When given, causes values in the
26312631
'sendemail.<identity>' subsection to take precedence over
26322632
values in the 'sendemail' section. The default identity is
2633-
the value of 'sendemail.identity'.
2633+
the value of `sendemail.identity`.
26342634

26352635
sendemail.smtpEncryption::
26362636
See linkgit:git-send-email[1] for description. Note that this
@@ -2647,7 +2647,7 @@ sendemail.<identity>.*::
26472647
Identity-specific versions of the 'sendemail.*' parameters
26482648
found below, taking precedence over those when the this
26492649
identity is selected, through command-line or
2650-
'sendemail.identity'.
2650+
`sendemail.identity`.
26512651

26522652
sendemail.aliasesFile::
26532653
sendemail.aliasFileType::
@@ -2677,7 +2677,7 @@ sendemail.xmailer::
26772677
See linkgit:git-send-email[1] for description.
26782678

26792679
sendemail.signedoffcc (deprecated)::
2680-
Deprecated alias for 'sendemail.signedoffbycc'.
2680+
Deprecated alias for `sendemail.signedoffbycc`.
26812681

26822682
showbranch.default::
26832683
The default set of branches for linkgit:git-show-branch[1].
@@ -2909,17 +2909,17 @@ url.<base>.pushInsteadOf::
29092909

29102910
user.email::
29112911
Your email address to be recorded in any newly created commits.
2912-
Can be overridden by the 'GIT_AUTHOR_EMAIL', 'GIT_COMMITTER_EMAIL', and
2913-
'EMAIL' environment variables. See linkgit:git-commit-tree[1].
2912+
Can be overridden by the `GIT_AUTHOR_EMAIL`, `GIT_COMMITTER_EMAIL`, and
2913+
`EMAIL` environment variables. See linkgit:git-commit-tree[1].
29142914

29152915
user.name::
29162916
Your full name to be recorded in any newly created commits.
2917-
Can be overridden by the 'GIT_AUTHOR_NAME' and 'GIT_COMMITTER_NAME'
2917+
Can be overridden by the `GIT_AUTHOR_NAME` and `GIT_COMMITTER_NAME`
29182918
environment variables. See linkgit:git-commit-tree[1].
29192919

29202920
user.useConfigOnly::
2921-
Instruct Git to avoid trying to guess defaults for 'user.email'
2922-
and 'user.name', and instead retrieve the values only from the
2921+
Instruct Git to avoid trying to guess defaults for `user.email`
2922+
and `user.name`, and instead retrieve the values only from the
29232923
configuration. For example, if you have multiple email addresses
29242924
and would like to use a different one for each repository, then
29252925
with this configuration option set to `true` in the global config

Documentation/date-formats.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
DATE FORMATS
22
------------
33

4-
The GIT_AUTHOR_DATE, GIT_COMMITTER_DATE environment variables
4+
The `GIT_AUTHOR_DATE`, `GIT_COMMITTER_DATE` environment variables
55
ifdef::git-commit[]
66
and the `--date` option
77
endif::git-commit[]

Documentation/diff-config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ diff.ignoreSubmodules::
7575
commands such as 'git diff-files'. 'git checkout' also honors
7676
this setting when reporting uncommitted changes. Setting it to
7777
'all' disables the submodule summary normally shown by 'git commit'
78-
and 'git status' when 'status.submoduleSummary' is set unless it is
78+
and 'git status' when `status.submoduleSummary` is set unless it is
7979
overridden by using the --ignore-submodules command-line option.
8080
The 'git submodule' commands are not affected by this setting.
8181

Documentation/diff-generate-patch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ with a '-p' option, "git diff" without the '--raw' option, or
66
"git log" with the "-p" option, they
77
do not produce the output described above; instead they produce a
88
patch file. You can customize the creation of such patches via the
9-
GIT_EXTERNAL_DIFF and the GIT_DIFF_OPTS environment variables.
9+
`GIT_EXTERNAL_DIFF` and the `GIT_DIFF_OPTS` environment variables.
1010

1111
What the -p option produces is slightly different from the traditional
1212
diff format:

Documentation/git-bisect-lk2009.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ skip" to do the same thing. (In fact the special exit code 125 makes
366366

367367
Or if you want more control, you can inspect the current state using
368368
for example "git bisect visualize". It will launch gitk (or "git log"
369-
if the DISPLAY environment variable is not set) to help you find a
369+
if the `DISPLAY` environment variable is not set) to help you find a
370370
better bisection point.
371371

372372
Either way, if you have a string of untestable commits, it might

Documentation/git-bisect.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ $ git bisect visualize
205205

206206
`view` may also be used as a synonym for `visualize`.
207207

208-
If the 'DISPLAY' environment variable is not set, 'git log' is used
208+
If the `DISPLAY` environment variable is not set, 'git log' is used
209209
instead. You can also give command-line options such as `-p` and
210210
`--stat`.
211211

Documentation/git-commit.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ default::
201201
Otherwise `whitespace`.
202202
--
203203
+
204-
The default can be changed by the 'commit.cleanup' configuration
204+
The default can be changed by the `commit.cleanup` configuration
205205
variable (see linkgit:git-config[1]).
206206

207207
-e::
@@ -450,8 +450,8 @@ include::i18n.txt[]
450450
ENVIRONMENT AND CONFIGURATION VARIABLES
451451
---------------------------------------
452452
The editor used to edit the commit log message will be chosen from the
453-
GIT_EDITOR environment variable, the core.editor configuration variable, the
454-
VISUAL environment variable, or the EDITOR environment variable (in that
453+
`GIT_EDITOR` environment variable, the core.editor configuration variable, the
454+
`VISUAL` environment variable, or the `EDITOR` environment variable (in that
455455
order). See linkgit:git-var[1] for details.
456456

457457
HOOKS

Documentation/git-config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ and '--unset'. *'git config' will only ever change one file at a time*.
269269

270270
You can override these rules either by command-line options or by environment
271271
variables. The '--global' and the '--system' options will limit the file used
272-
to the global or system-wide file respectively. The GIT_CONFIG environment
272+
to the global or system-wide file respectively. The `GIT_CONFIG` environment
273273
variable has a similar effect, but you can specify any filename you want.
274274

275275

Documentation/git-daemon.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Git configuration files in that directory are readable by `<user>`.
188188
arguments. The external command can decide to decline the
189189
service by exiting with a non-zero status (or to allow it by
190190
exiting with a zero status). It can also look at the $REMOTE_ADDR
191-
and $REMOTE_PORT environment variables to learn about the
191+
and `$REMOTE_PORT` environment variables to learn about the
192192
requestor when making this decision.
193193
+
194194
The external command can optionally write a single line to its

0 commit comments

Comments
 (0)