Skip to content

Commit 697da4d

Browse files
committed
Merge branch 'jc/doc-synopsis-option-markup' into seen
Doc mark-up fixes. Comments? * jc/doc-synopsis-option-markup: git-daemon doc: update mark-up of synopsis option descriptions git-{var,write-tree} docs: update mark-up of synopsis option descriptions git-verify-* doc: update mark-up of synopsis option descriptions
2 parents abb7fb2 + 4c623e7 commit 697da4d

File tree

6 files changed

+97
-104
lines changed

6 files changed

+97
-104
lines changed

Documentation/git-daemon.adoc

Lines changed: 60 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ git-daemon - A really simple server for Git repositories
77

88
SYNOPSIS
99
--------
10-
[verse]
11-
'git daemon' [--verbose] [--syslog] [--export-all]
12-
[--timeout=<n>] [--init-timeout=<n>] [--max-connections=<n>]
13-
[--strict-paths] [--base-path=<path>] [--base-path-relaxed]
14-
[--user-path | --user-path=<path>]
15-
[--interpolated-path=<pathtemplate>]
16-
[--reuseaddr] [--detach] [--pid-file=<file>]
17-
[--enable=<service>] [--disable=<service>]
18-
[--allow-override=<service>] [--forbid-override=<service>]
19-
[--access-hook=<path>] [--[no-]informative-errors]
20-
[--inetd |
21-
[--listen=<host-or-ipaddr>] [--port=<n>]
22-
[--user=<user> [--group=<group>]]]
23-
[--log-destination=(stderr|syslog|none)]
24-
[<directory>...]
10+
[synopsis]
11+
git daemon [--verbose] [--syslog] [--export-all]
12+
[--timeout=<n>] [--init-timeout=<n>] [--max-connections=<n>]
13+
[--strict-paths] [--base-path=<path>] [--base-path-relaxed]
14+
[--user-path | --user-path=<path>]
15+
[--interpolated-path=<pathtemplate>]
16+
[--reuseaddr] [--detach] [--pid-file=<file>]
17+
[--enable=<service>] [--disable=<service>]
18+
[--allow-override=<service>] [--forbid-override=<service>]
19+
[--access-hook=<path>] [--[no-]informative-errors]
20+
[--inetd |
21+
[--listen=<host-or-ipaddr>] [--port=<n>]
22+
[--user=<user> [--group=<group>]]]
23+
[--log-destination=(stderr|syslog|none)]
24+
[<directory>...]
2525

2626
DESCRIPTION
2727
-----------
@@ -32,7 +32,7 @@ that service if it is enabled.
3232
It verifies that the directory has the magic file "git-daemon-export-ok", and
3333
it will refuse to export any Git directory that hasn't explicitly been marked
3434
for export this way (unless the `--export-all` parameter is specified). If you
35-
pass some directory paths as 'git daemon' arguments, the offers are limited to
35+
pass some directory paths as `git daemon` arguments, the offers are limited to
3636
repositories within those directories.
3737

3838
By default, only `upload-pack` service is enabled, which serves
@@ -46,26 +46,26 @@ An `upload-archive` also exists to serve 'git archive'.
4646

4747
OPTIONS
4848
-------
49-
--strict-paths::
49+
`--strict-paths`::
5050
Match paths exactly (i.e. don't allow "/foo/repo" when the real path is
5151
"/foo/repo.git" or "/foo/repo/.git") and don't do user-relative paths.
52-
'git daemon' will refuse to start when this option is enabled and no
52+
`git daemon` will refuse to start when this option is enabled and no
5353
directory arguments are provided.
5454

55-
--base-path=<path>::
55+
`--base-path=<path>`::
5656
Remap all the path requests as relative to the given path.
57-
This is sort of "Git root" - if you run 'git daemon' with
58-
'--base-path=/srv/git' on example.com, then if you later try to pull
59-
'git://example.com/hello.git', 'git daemon' will interpret the path
60-
as `/srv/git/hello.git`.
57+
This is sort of "Git root" - if you run `git daemon` with
58+
`--base-path=/srv/git` on `example.com`, then if you later try
59+
to pull from `git://example.com/hello.git`, `git daemon` will
60+
interpret the path as `/srv/git/hello.git`.
6161

62-
--base-path-relaxed::
63-
If --base-path is enabled and repo lookup fails, with this option
62+
`--base-path-relaxed`::
63+
If `--base-path` is enabled and repo lookup fails, with this option
6464
'git daemon' will attempt to lookup without prefixing the base path.
65-
This is useful for switching to --base-path usage, while still
65+
This is useful for switching to `--base-path` usage, while still
6666
allowing the old paths.
6767

68-
--interpolated-path=<pathtemplate>::
68+
`--interpolated-path=<pathtemplate>`::
6969
To support virtual hosting, an interpolated path template can be
7070
used to dynamically construct alternate paths. The template
7171
supports %H for the target hostname as supplied by the client but
@@ -75,48 +75,48 @@ OPTIONS
7575
After interpolation, the path is validated against the directory
7676
list.
7777

78-
--export-all::
78+
`--export-all`::
7979
Allow pulling from all directories that look like Git repositories
8080
(have the 'objects' and 'refs' subdirectories), even if they
8181
do not have the 'git-daemon-export-ok' file.
8282

83-
--inetd::
84-
Have the server run as an inetd service. Implies --syslog (may be
85-
overridden with `--log-destination=`).
86-
Incompatible with --detach, --port, --listen, --user and --group
87-
options.
83+
`--inetd`::
84+
Have the server run as an inetd service. Implies `--syslog` (may
85+
be overridden with `--log-destination=`).
86+
Incompatible with `--detach`, `--port`, `--listen`, `--user` and
87+
`--group` options.
8888

89-
--listen=<host-or-ipaddr>::
89+
`--listen=<host-or-ipaddr>`::
9090
Listen on a specific IP address or hostname. IP addresses can
9191
be either an IPv4 address or an IPv6 address if supported. If IPv6
92-
is not supported, then --listen=<hostname> is also not supported and
93-
--listen must be given an IPv4 address.
92+
is not supported, then `--listen=<hostname>` is also not supported
93+
and `--listen` must be given an IPv4 address.
9494
Can be given more than once.
9595
Incompatible with `--inetd` option.
9696

97-
--port=<n>::
97+
`--port=<n>`::
9898
Listen on an alternative port. Incompatible with `--inetd` option.
9999

100-
--init-timeout=<n>::
100+
`--init-timeout=<n>`::
101101
Timeout (in seconds) between the moment the connection is established
102102
and the client request is received (typically a rather low value, since
103103
that should be basically immediate).
104104

105-
--timeout=<n>::
105+
`--timeout=<n>`::
106106
Timeout (in seconds) for specific client sub-requests. This includes
107107
the time it takes for the server to process the sub-request and the
108108
time spent waiting for the next client's request.
109109

110-
--max-connections=<n>::
110+
`--max-connections=<n>`::
111111
Maximum number of concurrent clients, defaults to 32. Set it to
112112
zero for no limit.
113113

114-
--syslog::
114+
`--syslog`::
115115
Short for `--log-destination=syslog`.
116116

117-
--log-destination=<destination>::
117+
`--log-destination=<destination>`::
118118
Send log messages to the specified destination.
119-
Note that this option does not imply --verbose,
119+
Note that this option does not imply `--verbose`,
120120
thus by default only error conditions will be logged.
121121
The <destination> must be one of:
122122
+
@@ -135,8 +135,8 @@ none::
135135
The default destination is `syslog` if `--inetd` or `--detach` is specified,
136136
otherwise `stderr`.
137137

138-
--user-path::
139-
--user-path=<path>::
138+
`--user-path`::
139+
`--user-path=<path>`::
140140
Allow {tilde}user notation to be used in requests. When
141141
specified with no parameter, a request to
142142
git://host/{tilde}alice/foo is taken as a request to access
@@ -145,23 +145,23 @@ otherwise `stderr`.
145145
taken as a request to access `<path>/foo` repository in
146146
the home directory of user `alice`.
147147

148-
--verbose::
148+
`--verbose`::
149149
Log details about the incoming connections and requested files.
150150

151-
--reuseaddr::
151+
`--reuseaddr`::
152152
Use SO_REUSEADDR when binding the listening socket.
153153
This allows the server to restart without waiting for
154154
old connections to time out.
155155

156-
--detach::
157-
Detach from the shell. Implies --syslog.
156+
`--detach`::
157+
Detach from the shell. Implies `--syslog`.
158158

159-
--pid-file=<file>::
159+
`--pid-file=<file>`::
160160
Save the process id in 'file'. Ignored when the daemon
161161
is run under `--inetd`.
162162

163-
--user=<user>::
164-
--group=<group>::
163+
`--user=<user>`::
164+
`--group=<group>`::
165165
Change daemon's uid and gid before entering the service loop.
166166
When only `--user` is given without `--group`, the
167167
primary group ID for the user is used. The values of
@@ -179,30 +179,31 @@ may also want to set and export `HOME` to point at the home
179179
directory of `<user>` before starting the daemon, and make sure any
180180
Git configuration files in that directory are readable by `<user>`.
181181

182-
--enable=<service>::
183-
--disable=<service>::
182+
`--enable=<service>`::
183+
`--disable=<service>`::
184184
Enable/disable the service site-wide per default. Note
185185
that a service disabled site-wide can still be enabled
186186
per repository if it is marked overridable and the
187187
repository enables the service with a configuration
188188
item.
189189

190-
--allow-override=<service>::
191-
--forbid-override=<service>::
190+
`--allow-override=<service>`::
191+
`--forbid-override=<service>`::
192192
Allow/forbid overriding the site-wide default with per
193193
repository configuration. By default, all the services
194194
may be overridden.
195195

196-
--[no-]informative-errors::
196+
`--informative-errors`::
197+
`--no-informative-errors`::
197198
When informative errors are turned on, git-daemon will report
198199
more verbose errors to the client, differentiating conditions
199200
like "no such repository" from "repository not exported". This
200201
is more convenient for clients, but may leak information about
201202
the existence of unexported repositories. When informative
202203
errors are not enabled, all errors report "access denied" to the
203-
client. The default is --no-informative-errors.
204+
client. The default is `--no-informative-errors`.
204205

205-
--access-hook=<path>::
206+
`--access-hook=<path>`::
206207
Every time a client connects, first run an external command
207208
specified by the <path> with service name (e.g. "upload-pack"),
208209
path to the repository, hostname (%H), canonical hostname

Documentation/git-var.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ git-var - Show a Git logical variable
88

99
SYNOPSIS
1010
--------
11-
[verse]
12-
'git var' (-l | <variable>)
11+
[synopsis]
12+
git var (-l | <variable>)
1313

1414
DESCRIPTION
1515
-----------
@@ -18,7 +18,7 @@ no value.
1818

1919
OPTIONS
2020
-------
21-
-l::
21+
`-l`::
2222
Display the logical variables. In addition, all the
2323
variables of the Git configuration file .git/config are listed
2424
as well. (However, the configuration variables listing functionality

Documentation/git-verify-commit.adoc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,24 @@ git-verify-commit - Check the GPG signature of commits
77

88
SYNOPSIS
99
--------
10-
[verse]
11-
'git verify-commit' [-v | --verbose] [--raw] <commit>...
10+
[synopsis]
11+
git verify-commit [-v | --verbose] [--raw] <commit>...
1212

1313
DESCRIPTION
1414
-----------
15-
Validates the GPG signature created by 'git commit -S'.
15+
Validates the GPG signature created by `git commit -S`
16+
on the commit objects given on the command line.
1617

1718
OPTIONS
1819
-------
19-
--raw::
20+
`--raw`::
2021
Print the raw gpg status output to standard error instead of the normal
2122
human-readable output.
2223

23-
-v::
24-
--verbose::
24+
`-v`::
25+
`--verbose`::
2526
Print the contents of the commit object before validating it.
2627

27-
<commit>...::
28-
SHA-1 identifiers of Git commit objects.
29-
3028
GIT
3129
---
3230
Part of the linkgit:git[1] suite

Documentation/git-verify-pack.adoc

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,39 @@ git-verify-pack - Validate packed Git archive files
88

99
SYNOPSIS
1010
--------
11-
[verse]
12-
'git verify-pack' [-v | --verbose] [-s | --stat-only] [--] <pack>.idx...
11+
[synopsis]
12+
git verify-pack [-v | --verbose] [-s | --stat-only] [--] <pack>.idx...
1313

1414

1515
DESCRIPTION
1616
-----------
17-
Reads given idx file for packed Git archive created with the
18-
'git pack-objects' command and verifies the idx file and the
19-
corresponding pack file.
17+
Read each idx file for packed Git archive given on the command line,
18+
and verify the idx file and the corresponding pack file.
2019

2120
OPTIONS
2221
-------
23-
<pack>.idx ...::
24-
The idx files to verify.
25-
26-
-v::
27-
--verbose::
22+
`-v`::
23+
`--verbose`::
2824
After verifying the pack, show the list of objects contained
2925
in the pack and a histogram of delta chain length.
3026

31-
-s::
32-
--stat-only::
27+
`-s`::
28+
`--stat-only`::
3329
Do not verify the pack contents; only show the histogram of delta
3430
chain length. With `--verbose`, the list of objects is also shown.
3531

36-
\--::
32+
`--`::
3733
Do not interpret any more arguments as options.
3834

3935
OUTPUT FORMAT
4036
-------------
41-
When specifying the -v option the format used is:
37+
When specifying the `-v` option the format used is:
4238

43-
SHA-1 type size size-in-packfile offset-in-packfile
39+
object-name type size size-in-packfile offset-in-packfile
4440

4541
for objects that are not deltified in the pack, and
4642

47-
SHA-1 type size size-in-packfile offset-in-packfile depth base-SHA-1
43+
object-name type size size-in-packfile offset-in-packfile depth base-object-name
4844

4945
for objects that are deltified.
5046

Documentation/git-verify-tag.adoc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,24 @@ git-verify-tag - Check the GPG signature of tags
77

88
SYNOPSIS
99
--------
10-
[verse]
11-
'git verify-tag' [-v | --verbose] [--format=<format>] [--raw] <tag>...
10+
[synopsis]
11+
git verify-tag [-v | --verbose] [--format=<format>] [--raw] <tag>...
1212

1313
DESCRIPTION
1414
-----------
15-
Validates the gpg signature created by 'git tag'.
15+
Validates the gpg signature created by 'git tag' in the tag
16+
objects listed on the command line.
1617

1718
OPTIONS
1819
-------
19-
--raw::
20+
`--raw`::
2021
Print the raw gpg status output to standard error instead of the normal
2122
human-readable output.
2223

23-
-v::
24-
--verbose::
24+
`-v`::
25+
`--verbose`::
2526
Print the contents of the tag object before validating it.
2627

27-
<tag>...::
28-
SHA-1 identifiers of Git tag objects.
29-
3028
GIT
3129
---
3230
Part of the linkgit:git[1] suite

0 commit comments

Comments
 (0)