Skip to content

Commit ffd9bb1

Browse files
committed
Merge branch 'ja/doc-synopsis-style'
Doc mark-up updates. * ja/doc-synopsis-style: doc: pull-fetch-param typofix doc: convert git push to synopsis style doc: convert git pull to synopsis style doc: convert git fetch to synopsis style
2 parents 0fec747 + fddba8f commit ffd9bb1

File tree

10 files changed

+427
-405
lines changed

10 files changed

+427
-405
lines changed

Documentation/config/fetch.adoc

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
fetch.recurseSubmodules::
1+
`fetch.recurseSubmodules`::
22
This option controls whether `git fetch` (and the underlying fetch
33
in `git pull`) will recursively fetch into populated submodules.
4-
This option can be set either to a boolean value or to 'on-demand'.
4+
This option can be set either to a boolean value or to `on-demand`.
55
Setting it to a boolean changes the behavior of fetch and pull to
66
recurse unconditionally into submodules when set to true or to not
7-
recurse at all when set to false. When set to 'on-demand', fetch and
7+
recurse at all when set to false. When set to `on-demand`, fetch and
88
pull will only recurse into a populated submodule when its
99
superproject retrieves a commit that updates the submodule's
1010
reference.
11-
Defaults to 'on-demand', or to the value of 'submodule.recurse' if set.
11+
Defaults to `on-demand`, or to the value of `submodule.recurse` if set.
1212

13-
fetch.fsckObjects::
13+
`fetch.fsckObjects`::
1414
If it is set to true, git-fetch-pack will check all fetched
1515
objects. See `transfer.fsckObjects` for what's
16-
checked. Defaults to false. If not set, the value of
16+
checked. Defaults to `false`. If not set, the value of
1717
`transfer.fsckObjects` is used instead.
1818

19-
fetch.fsck.<msg-id>::
19+
`fetch.fsck.<msg-id>`::
2020
Acts like `fsck.<msg-id>`, but is used by
2121
linkgit:git-fetch-pack[1] instead of linkgit:git-fsck[1]. See
2222
the `fsck.<msg-id>` documentation for details.
2323

24-
fetch.fsck.skipList::
24+
`fetch.fsck.skipList`::
2525
Acts like `fsck.skipList`, but is used by
2626
linkgit:git-fetch-pack[1] instead of linkgit:git-fsck[1]. See
2727
the `fsck.skipList` documentation for details.
2828

29-
fetch.unpackLimit::
29+
`fetch.unpackLimit`::
3030
If the number of objects fetched over the Git native
3131
transfer is below this
3232
limit, then the objects will be unpacked into loose object
@@ -37,54 +37,54 @@ fetch.unpackLimit::
3737
especially on slow filesystems. If not set, the value of
3838
`transfer.unpackLimit` is used instead.
3939

40-
fetch.prune::
40+
`fetch.prune`::
4141
If true, fetch will automatically behave as if the `--prune`
4242
option was given on the command line. See also `remote.<name>.prune`
4343
and the PRUNING section of linkgit:git-fetch[1].
4444

45-
fetch.pruneTags::
45+
`fetch.pruneTags`::
4646
If true, fetch will automatically behave as if the
4747
`refs/tags/*:refs/tags/*` refspec was provided when pruning,
4848
if not set already. This allows for setting both this option
4949
and `fetch.prune` to maintain a 1=1 mapping to upstream
5050
refs. See also `remote.<name>.pruneTags` and the PRUNING
5151
section of linkgit:git-fetch[1].
5252

53-
fetch.all::
53+
`fetch.all`::
5454
If true, fetch will attempt to update all available remotes.
5555
This behavior can be overridden by passing `--no-all` or by
5656
explicitly specifying one or more remote(s) to fetch from.
57-
Defaults to false.
57+
Defaults to `false`.
5858

59-
fetch.output::
59+
`fetch.output`::
6060
Control how ref update status is printed. Valid values are
6161
`full` and `compact`. Default value is `full`. See the
6262
OUTPUT section in linkgit:git-fetch[1] for details.
6363

64-
fetch.negotiationAlgorithm::
64+
`fetch.negotiationAlgorithm`::
6565
Control how information about the commits in the local repository
6666
is sent when negotiating the contents of the packfile to be sent by
67-
the server. Set to "consecutive" to use an algorithm that walks
68-
over consecutive commits checking each one. Set to "skipping" to
67+
the server. Set to `consecutive` to use an algorithm that walks
68+
over consecutive commits checking each one. Set to `skipping` to
6969
use an algorithm that skips commits in an effort to converge
7070
faster, but may result in a larger-than-necessary packfile; or set
71-
to "noop" to not send any information at all, which will almost
71+
to `noop` to not send any information at all, which will almost
7272
certainly result in a larger-than-necessary packfile, but will skip
73-
the negotiation step. Set to "default" to override settings made
73+
the negotiation step. Set to `default` to override settings made
7474
previously and use the default behaviour. The default is normally
75-
"consecutive", but if `feature.experimental` is true, then the
76-
default is "skipping". Unknown values will cause 'git fetch' to
75+
`consecutive`, but if `feature.experimental` is `true`, then the
76+
default is `skipping`. Unknown values will cause `git fetch` to
7777
error out.
7878
+
7979
See also the `--negotiate-only` and `--negotiation-tip` options to
8080
linkgit:git-fetch[1].
8181

82-
fetch.showForcedUpdates::
83-
Set to false to enable `--no-show-forced-updates` in
82+
`fetch.showForcedUpdates`::
83+
Set to `false` to enable `--no-show-forced-updates` in
8484
linkgit:git-fetch[1] and linkgit:git-pull[1] commands.
85-
Defaults to true.
85+
Defaults to `true`.
8686

87-
fetch.parallel::
87+
`fetch.parallel`::
8888
Specifies the maximal number of fetch operations to be run in parallel
8989
at a time (submodules, or remotes when the `--multiple` option of
9090
linkgit:git-fetch[1] is in effect).
@@ -94,16 +94,16 @@ A value of 0 will give some reasonable default. If unset, it defaults to 1.
9494
For submodules, this setting can be overridden using the `submodule.fetchJobs`
9595
config setting.
9696

97-
fetch.writeCommitGraph::
97+
`fetch.writeCommitGraph`::
9898
Set to true to write a commit-graph after every `git fetch` command
9999
that downloads a pack-file from a remote. Using the `--split` option,
100100
most executions will create a very small commit-graph file on top of
101101
the existing commit-graph file(s). Occasionally, these files will
102102
merge and the write may take longer. Having an updated commit-graph
103103
file helps performance of many Git commands, including `git merge-base`,
104-
`git push -f`, and `git log --graph`. Defaults to false.
104+
`git push -f`, and `git log --graph`. Defaults to `false`.
105105

106-
fetch.bundleURI::
106+
`fetch.bundleURI`::
107107
This value stores a URI for downloading Git object data from a bundle
108108
URI before performing an incremental fetch from the origin Git server.
109109
This is similar to how the `--bundle-uri` option behaves in
@@ -115,9 +115,9 @@ If you modify this value and your repository has a `fetch.bundleCreationToken`
115115
value, then remove that `fetch.bundleCreationToken` value before fetching from
116116
the new bundle URI.
117117

118-
fetch.bundleCreationToken::
118+
`fetch.bundleCreationToken`::
119119
When using `fetch.bundleURI` to fetch incrementally from a bundle
120-
list that uses the "creationToken" heuristic, this config value
120+
list that uses the "`creationToken`" heuristic, this config value
121121
stores the maximum `creationToken` value of the downloaded bundles.
122122
This value is used to prevent downloading bundles in the future
123123
if the advertised `creationToken` is not strictly larger than this

Documentation/config/push.adoc

Lines changed: 59 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
push.autoSetupRemote::
2-
If set to "true" assume `--set-upstream` on default push when no
1+
`push.autoSetupRemote`::
2+
If set to `true` assume `--set-upstream` on default push when no
33
upstream tracking exists for the current branch; this option
4-
takes effect with push.default options 'simple', 'upstream',
5-
and 'current'. It is useful if by default you want new branches
4+
takes effect with `push.default` options `simple`, `upstream`,
5+
and `current`. It is useful if by default you want new branches
66
to be pushed to the default remote (like the behavior of
7-
'push.default=current') and you also want the upstream tracking
7+
`push.default=current`) and you also want the upstream tracking
88
to be set. Workflows most likely to benefit from this option are
9-
'simple' central workflows where all branches are expected to
9+
`simple` central workflows where all branches are expected to
1010
have the same name on the remote.
1111

12-
push.default::
12+
`push.default`::
1313
Defines the action `git push` should take if no refspec is
1414
given (whether from the command-line, config, or elsewhere).
1515
Different values are well-suited for
@@ -18,24 +18,28 @@ push.default::
1818
`upstream` is probably what you want. Possible values are:
1919
+
2020
--
21-
22-
* `nothing` - do not push anything (error out) unless a refspec is
23-
given. This is primarily meant for people who want to
24-
avoid mistakes by always being explicit.
25-
26-
* `current` - push the current branch to update a branch with the same
27-
name on the receiving end. Works in both central and non-central
28-
workflows.
29-
30-
* `upstream` - push the current branch back to the branch whose
31-
changes are usually integrated into the current branch (which is
32-
called `@{upstream}`). This mode only makes sense if you are
33-
pushing to the same repository you would normally pull from
34-
(i.e. central workflow).
35-
36-
* `tracking` - This is a deprecated synonym for `upstream`.
37-
38-
* `simple` - push the current branch with the same name on the remote.
21+
`nothing`;;
22+
do not push anything (error out) unless a refspec is
23+
given. This is primarily meant for people who want to
24+
avoid mistakes by always being explicit.
25+
26+
`current`;;
27+
push the current branch to update a branch with the same
28+
name on the receiving end. Works in both central and non-central
29+
workflows.
30+
31+
`upstream`;;
32+
push the current branch back to the branch whose
33+
changes are usually integrated into the current branch (which is
34+
called `@{upstream}`). This mode only makes sense if you are
35+
pushing to the same repository you would normally pull from
36+
(i.e. central workflow).
37+
38+
`tracking`;;
39+
this is a deprecated synonym for `upstream`.
40+
41+
`simple`;;
42+
push the current branch with the same name on the remote.
3943
+
4044
If you are working on a centralized workflow (pushing to the same repository you
4145
pull from, which is typically `origin`), then you need to configure an upstream
@@ -44,16 +48,17 @@ branch with the same name.
4448
This mode is the default since Git 2.0, and is the safest option suited for
4549
beginners.
4650

47-
* `matching` - push all branches having the same name on both ends.
48-
This makes the repository you are pushing to remember the set of
49-
branches that will be pushed out (e.g. if you always push 'maint'
50-
and 'master' there and no other branches, the repository you push
51-
to will have these two branches, and your local 'maint' and
52-
'master' will be pushed there).
51+
`matching`;;
52+
push all branches having the same name on both ends.
53+
This makes the repository you are pushing to remember the set of
54+
branches that will be pushed out (e.g. if you always push `maint`
55+
and `master` there and no other branches, the repository you push
56+
to will have these two branches, and your local `maint` and
57+
`master` will be pushed there).
5358
+
5459
To use this mode effectively, you have to make sure _all_ the
5560
branches you would push out are ready to be pushed out before
56-
running 'git push', as the whole point of this mode is to allow you
61+
running `git push`, as the whole point of this mode is to allow you
5762
to push all of the branches in one go. If you usually finish work
5863
on only one branch and push out the result, while other branches are
5964
unfinished, this mode is not for you. Also this mode is not
@@ -66,24 +71,24 @@ new default).
6671

6772
--
6873

69-
push.followTags::
74+
`push.followTags`::
7075
If set to true, enable `--follow-tags` option by default. You
7176
may override this configuration at time of push by specifying
7277
`--no-follow-tags`.
7378

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

83-
push.pushOption::
88+
`push.pushOption`::
8489
When no `--push-option=<option>` argument is given from the
85-
command line, `git push` behaves as if each <value> of
86-
this variable is given as `--push-option=<value>`.
90+
command line, `git push` behaves as if each _<option>_ of
91+
this variable is given as `--push-option=<option>`.
8792
+
8893
This is a multi-valued variable, and an empty value can be used in a
8994
higher priority configuration file (e.g. `.git/config` in a
@@ -109,26 +114,26 @@ This will result in only b (a and c are cleared).
109114

110115
----
111116
112-
push.recurseSubmodules::
113-
May be "check", "on-demand", "only", or "no", with the same behavior
114-
as that of "push --recurse-submodules".
115-
If not set, 'no' is used by default, unless 'submodule.recurse' is
116-
set (in which case a 'true' value means 'on-demand').
117+
`push.recurseSubmodules`::
118+
May be `check`, `on-demand`, `only`, or `no`, with the same behavior
119+
as that of `push --recurse-submodules`.
120+
If not set, `no` is used by default, unless `submodule.recurse` is
121+
set (in which case a `true` value means `on-demand`).
117122
118-
push.useForceIfIncludes::
119-
If set to "true", it is equivalent to specifying
123+
`push.useForceIfIncludes`::
124+
If set to `true`, it is equivalent to specifying
120125
`--force-if-includes` as an option to linkgit:git-push[1]
121126
in the command line. Adding `--no-force-if-includes` at the
122127
time of push overrides this configuration setting.
123128
124-
push.negotiate::
125-
If set to "true", attempt to reduce the size of the packfile
129+
`push.negotiate`::
130+
If set to `true`, attempt to reduce the size of the packfile
126131
sent by rounds of negotiation in which the client and the
127-
server attempt to find commits in common. If "false", Git will
132+
server attempt to find commits in common. If `false`, Git will
128133
rely solely on the server's ref advertisement to find commits
129134
in common.
130135
131-
push.useBitmaps::
132-
If set to "false", disable use of bitmaps for "git push" even if
133-
`pack.useBitmaps` is "true", without preventing other git operations
134-
from using bitmaps. Default is true.
136+
`push.useBitmaps`::
137+
If set to `false`, disable use of bitmaps for `git push` even if
138+
`pack.useBitmaps` is `true`, without preventing other git operations
139+
from using bitmaps. Default is `true`.

0 commit comments

Comments
 (0)