File tree Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ include::diff-context-options.adoc[]
334
334
separated with _NUL_ character and all other characters are taken
335
335
literally (including newlines and quotes).
336
336
337
- <branch> ::
337
+ ` <branch> ` ::
338
338
Branch to checkout; if it refers to a branch (i .e ., a name that,
339
339
when prepended with "refs/heads/", is a valid ref), then that
340
340
branch is checked out. Otherwise, if it refers to a valid
Original file line number Diff line number Diff line change @@ -20,41 +20,41 @@ This command provides low-level access to refs.
20
20
COMMANDS
21
21
--------
22
22
23
- migrate::
23
+ ` migrate` ::
24
24
Migrate ref store between different formats.
25
25
26
- verify::
26
+ ` verify` ::
27
27
Verify reference database consistency.
28
28
29
29
OPTIONS
30
30
-------
31
31
32
- The following options are specific to ' git refs migrate' :
32
+ The following options are specific to ` git refs migrate` :
33
33
34
- -- ref-format=<format >::
34
+ ` --ref-format=<format>` ::
35
35
The ref format to migrate the ref store to. Can be one of:
36
36
+
37
37
include::ref-storage-format.adoc[]
38
38
39
- -- dry-run::
39
+ ` --dry-run` ::
40
40
Perform the migration, but do not modify the repository. The migrated
41
41
refs will be written into a separate directory that can be inspected
42
42
separately. The name of the directory will be reported on stdout. This
43
43
can be used to double check that the migration works as expected before
44
44
performing the actual migration.
45
45
46
- -- reflog::
47
- -- no-reflog::
46
+ ` --reflog` ::
47
+ ` --no-reflog` ::
48
48
Choose between migrating the reflog data to the new backend,
49
49
and discarding them. The default is "-- reflog", to migrate.
50
50
51
- The following options are specific to ' git refs verify' :
51
+ The following options are specific to ` git refs verify` :
52
52
53
- -- strict::
53
+ ` --strict` ::
54
54
Enable stricter error checking. This will cause warnings to be
55
55
reported as errors. See linkgit:git-fsck[1].
56
56
57
- -- verbose::
57
+ ` --verbose` ::
58
58
When verifying the reference database consistency, be chatty.
59
59
60
60
KNOWN LIMITATIONS
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ sub report {
21
21
if ($line =~ / ^`?--\[ no-\] [a-z0-9-]+.*(::|;;)$ / ) {
22
22
report($line , " definition list item with a `--[no-]` parameter" );
23
23
}
24
+ if ($line =~ / ^\[ synopsis\] $ / ) {
25
+ $synopsis_style = 1;
26
+ }
27
+ if (($line =~ / ^(-[-a-z].*|<[-a-z0-9]+>(\. {3})?)(::|;;)$ / ) && ($synopsis_style )) {
28
+ report($line , " synopsis style and definition list item not backquoted" );
29
+ }
24
30
}
25
31
26
32
You can’t perform that action at this time.
0 commit comments