Skip to content

Commit 81ba11b

Browse files
committed
Merge branch 'ja/doc-markup-fixes'
Mark-ups used in the documentation has been improved for consistency. * ja/doc-markup-fixes: doc: git-clone: format placeholders doc: git-clone: format verbatim words doc: git-init: rework config item init.templateDir doc: git-init: rework definition lists doc: git-init: format placeholders doc: git-init: format verbatim parts
2 parents b0b43e3 + 45d5ed3 commit 81ba11b

File tree

4 files changed

+57
-48
lines changed

4 files changed

+57
-48
lines changed

Documentation/config/init.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
init.templateDir::
2-
Specify the directory from which templates will be copied.
3-
(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
1+
:see-git-init:
2+
ifndef::git-init[]
3+
:see-git-init: (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
4+
endif::[]
45

6+
init.templateDir::
7+
Specify the directory from which templates will be copied. {see-git-init}
58
init.defaultBranch::
69
Allows overriding the default branch name e.g. when initializing
710
a new repository.

Documentation/git-clone.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ its source repository, you can simply run `git repack -a` to copy all
102102
objects from the source repository into a pack in the cloned repository.
103103

104104
--reference[-if-able] <repository>::
105-
If the reference repository is on the local machine,
105+
If the reference _<repository>_ is on the local machine,
106106
automatically setup `.git/objects/info/alternates` to
107-
obtain objects from the reference repository. Using
107+
obtain objects from the reference _<repository>_. Using
108108
an already existing repository as an alternate will
109109
require fewer objects to be copied from the repository
110110
being cloned, reducing network and local storage costs.
@@ -156,13 +156,13 @@ objects from the source repository into a pack in the cloned repository.
156156

157157
--[no-]reject-shallow::
158158
Fail if the source repository is a shallow repository.
159-
The 'clone.rejectShallow' configuration variable can be used to
159+
The `clone.rejectShallow` configuration variable can be used to
160160
specify the default.
161161

162162
--bare::
163163
Make a 'bare' Git repository. That is, instead of
164-
creating `<directory>` and placing the administrative
165-
files in `<directory>/.git`, make the `<directory>`
164+
creating _<directory>_ and placing the administrative
165+
files in `<directory>/.git`, make the _<directory>_
166166
itself the `$GIT_DIR`. This obviously implies the `--no-checkout`
167167
because there is nowhere to check out the working tree.
168168
Also the branch heads at the remote are copied directly
@@ -180,11 +180,11 @@ objects from the source repository into a pack in the cloned repository.
180180
--filter=<filter-spec>::
181181
Use the partial clone feature and request that the server sends
182182
a subset of reachable objects according to a given object filter.
183-
When using `--filter`, the supplied `<filter-spec>` is used for
183+
When using `--filter`, the supplied _<filter-spec>_ is used for
184184
the partial clone filter. For example, `--filter=blob:none` will
185185
filter out all blobs (file contents) until needed by Git. Also,
186186
`--filter=blob:limit=<size>` will filter out all blobs of size
187-
at least `<size>`. For more details on filter specifications, see
187+
at least _<size>_. For more details on filter specifications, see
188188
the `--filter` option in linkgit:git-rev-list[1].
189189

190190
--also-filter-submodules::
@@ -203,13 +203,13 @@ objects from the source repository into a pack in the cloned repository.
203203
-o <name>::
204204
--origin <name>::
205205
Instead of using the remote name `origin` to keep track of the upstream
206-
repository, use `<name>`. Overrides `clone.defaultRemoteName` from the
206+
repository, use _<name>_. Overrides `clone.defaultRemoteName` from the
207207
config.
208208

209209
-b <name>::
210210
--branch <name>::
211211
Instead of pointing the newly created HEAD to the branch pointed
212-
to by the cloned repository's HEAD, point to `<name>` branch
212+
to by the cloned repository's HEAD, point to _<name>_ branch
213213
instead. In a non-bare repository, this is the branch that will
214214
be checked out.
215215
`--branch` can also take tags and detaches the HEAD at that commit
@@ -230,7 +230,7 @@ objects from the source repository into a pack in the cloned repository.
230230
Set a configuration variable in the newly-created repository;
231231
this takes effect immediately after the repository is
232232
initialized, but before the remote history is fetched or any
233-
files checked out. The key is in the same format as expected by
233+
files checked out. The _<key>_ is in the same format as expected by
234234
linkgit:git-config[1] (e.g., `core.eol=true`). If multiple
235235
values are given for the same key, each value will be written to
236236
the config file. This makes it safe, for example, to add
@@ -263,7 +263,7 @@ corresponding `--mirror` and `--no-tags` options instead.
263263
branch remote's `HEAD` points at.
264264
Further fetches into the resulting repository will only update the
265265
remote-tracking branch for the branch this option was used for the
266-
initial cloning. If the HEAD at the remote did not point at any
266+
initial cloning. If the `HEAD` at the remote did not point at any
267267
branch when `--single-branch` clone was made, no remote-tracking
268268
branch is created.
269269

@@ -281,7 +281,7 @@ branch of some repository for search indexing.
281281

282282
--recurse-submodules[=<pathspec>]::
283283
After the clone is created, initialize and clone submodules
284-
within based on the provided pathspec. If no pathspec is
284+
within based on the provided _<pathspec>_. If no _=<pathspec>_ is
285285
provided, all submodules are initialized and cloned.
286286
This option can be given multiple times for pathspecs consisting
287287
of multiple entries. The resulting clone has `submodule.active` set to
@@ -323,20 +323,20 @@ include::ref-storage-format.txt[]
323323
Defaults to the `submodule.fetchJobs` option.
324324

325325
<repository>::
326-
The (possibly remote) repository to clone from. See the
326+
The (possibly remote) _<repository>_ to clone from. See the
327327
<<URLS,GIT URLS>> section below for more information on specifying
328328
repositories.
329329

330330
<directory>::
331331
The name of a new directory to clone into. The "humanish"
332-
part of the source repository is used if no directory is
332+
part of the source repository is used if no _<directory>_ is
333333
explicitly given (`repo` for `/path/to/repo.git` and `foo`
334334
for `host.xz:foo/.git`). Cloning into an existing directory
335335
is only allowed if the directory is empty.
336336

337337
--bundle-uri=<uri>::
338338
Before fetching from the remote, fetch a bundle from the given
339-
`<uri>` and unbundle the data into the local repository. The refs
339+
_<uri>_ and unbundle the data into the local repository. The refs
340340
in the bundle will be stored under the hidden `refs/bundle/*`
341341
namespace. This option is incompatible with `--depth`,
342342
`--shallow-since`, and `--shallow-exclude`.

Documentation/git-init.txt

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ If the object storage directory is specified via the
3333
are created underneath; otherwise, the default `$GIT_DIR/objects`
3434
directory is used.
3535

36-
Running 'git init' in an existing repository is safe. It will not
36+
Running `git init` in an existing repository is safe. It will not
3737
overwrite things that are already there. The primary reason for
38-
rerunning 'git init' is to pick up newly added templates (or to move
39-
the repository to another place if --separate-git-dir is given).
38+
rerunning `git init` is to pick up newly added templates (or to move
39+
the repository to another place if `--separate-git-dir` is given).
4040

4141
OPTIONS
4242
-------
@@ -53,14 +53,14 @@ current working directory.
5353

5454
--object-format=<format>::
5555

56-
Specify the given object format (hash algorithm) for the repository. The valid
57-
values are 'sha1' and (if enabled) 'sha256'. 'sha1' is the default.
56+
Specify the given object _<format>_ (hash algorithm) for the repository. The valid
57+
values are `sha1` and (if enabled) `sha256`. `sha1` is the default.
5858
+
5959
include::object-format-disclaimer.txt[]
6060

6161
--ref-format=<format>::
6262

63-
Specify the given ref storage format for the repository. The valid values are:
63+
Specify the given ref storage _<format>_ for the repository. The valid values are:
6464
+
6565
include::ref-storage-format.txt[]
6666

@@ -81,7 +81,7 @@ If this is a reinitialization, the repository will be moved to the specified pat
8181
-b <branch-name>::
8282
--initial-branch=<branch-name>::
8383

84-
Use the specified name for the initial branch in the newly created
84+
Use _<branch-name>_ for the initial branch in the newly created
8585
repository. If not specified, fall back to the default name (currently
8686
`master`, but this is subject to change in the future; the name can be
8787
customized via the `init.defaultBranch` configuration variable).
@@ -90,40 +90,44 @@ customized via the `init.defaultBranch` configuration variable).
9090

9191
Specify that the Git repository is to be shared amongst several users. This
9292
allows users belonging to the same group to push into that
93-
repository. When specified, the config variable "core.sharedRepository" is
93+
repository. When specified, the config variable `core.sharedRepository` is
9494
set so that files and directories under `$GIT_DIR` are created with the
9595
requested permissions. When not specified, Git will use permissions reported
96-
by umask(2).
96+
by `umask(2)`.
9797
+
98-
The option can have the following values, defaulting to 'group' if no value
98+
The option can have the following values, defaulting to `group` if no value
9999
is given:
100100
+
101101
--
102-
'umask' (or 'false')::
102+
umask::
103+
false::
103104

104105
Use permissions reported by umask(2). The default, when `--shared` is not
105106
specified.
106107

107-
'group' (or 'true')::
108+
group::
109+
true::
108110

109111
Make the repository group-writable, (and g+sx, since the git group may not be
110112
the primary group of all users). This is used to loosen the permissions of an
111113
otherwise safe umask(2) value. Note that the umask still applies to the other
112-
permission bits (e.g. if umask is '0022', using 'group' will not remove read
113-
privileges from other (non-group) users). See '0xxx' for how to exactly specify
114+
permission bits (e.g. if umask is `0022`, using `group` will not remove read
115+
privileges from other (non-group) users). See `0xxx` for how to exactly specify
114116
the repository permissions.
115117

116-
'all' (or 'world' or 'everybody')::
118+
all::
119+
world::
120+
everybody::
117121

118-
Same as 'group', but make the repository readable by all users.
122+
Same as `group`, but make the repository readable by all users.
119123

120-
'<perm>'::
124+
<perm>::
121125

122-
'<perm>' is a 3-digit octal number prefixed with `0` and each file
123-
will have mode '<perm>'. '<perm>' will override users' umask(2)
124-
value (and not only loosen permissions as 'group' and 'all'
125-
do). '0640' will create a repository which is group-readable, but
126-
not group-writable or accessible to others. '0660' will create a repo
126+
_<perm>_ is a 3-digit octal number prefixed with `0` and each file
127+
will have mode _<perm>_. _<perm>_ will override users'`umask(2)`
128+
value (and not only loosen permissions as `group` and `all`
129+
do). `0640` will create a repository which is group-readable, but
130+
not group-writable or accessible to others. `0660` will create a repo
127131
that is readable and writable to the current user and group, but
128132
inaccessible to others (directories and executable files get their
129133
`x` bit from the `r` bit for corresponding classes of users).
@@ -133,7 +137,7 @@ By default, the configuration flag `receive.denyNonFastForwards` is enabled
133137
in shared repositories, so that you cannot force a non fast-forwarding push
134138
into it.
135139

136-
If you provide a 'directory', the command is run inside it. If this directory
140+
If you provide a _<directory>_, the command is run inside it. If this directory
137141
does not exist, it will be created.
138142

139143
TEMPLATE DIRECTORY
@@ -172,7 +176,7 @@ $ git add . <2>
172176
$ git commit <3>
173177
----------------
174178
+
175-
<1> Create a /path/to/my/codebase/.git directory.
179+
<1> Create a `/path/to/my/codebase/.git` directory.
176180
<2> Add all existing files to the index.
177181
<3> Record the pristine state as the first commit in the history.
178182

@@ -181,6 +185,8 @@ CONFIGURATION
181185

182186
include::includes/cmd-config-section-all.txt[]
183187

188+
:git-init:
189+
184190
include::config/init.txt[]
185191

186192
GIT

Documentation/urls.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,26 @@ syntaxes may be used:
4444

4545
ifndef::git-clone[]
4646
These two syntaxes are mostly equivalent, except when cloning, when
47-
the former implies --local option. See linkgit:git-clone[1] for
47+
the former implies `--local` option. See linkgit:git-clone[1] for
4848
details.
4949
endif::git-clone[]
5050

5151
ifdef::git-clone[]
5252
These two syntaxes are mostly equivalent, except the former implies
53-
--local option.
53+
`--local` option.
5454
endif::git-clone[]
5555

56-
'git clone', 'git fetch' and 'git pull', but not 'git push', will also
56+
`git clone`, `git fetch` and `git pull`, but not `git push`, will also
5757
accept a suitable bundle file. See linkgit:git-bundle[1].
5858

5959
When Git doesn't know how to handle a certain transport protocol, it
60-
attempts to use the 'remote-<transport>' remote helper, if one
60+
attempts to use the `remote-<transport>` remote helper, if one
6161
exists. To explicitly request a remote helper, the following syntax
6262
may be used:
6363

64-
- <transport>::<address>
64+
- _<transport>_::_<address>_
6565

66-
where <address> may be a path, a server and path, or an arbitrary
66+
where _<address>_ may be a path, a server and path, or an arbitrary
6767
URL-like string recognized by the specific remote helper being
6868
invoked. See linkgit:gitremote-helpers[7] for details.
6969

0 commit comments

Comments
 (0)