Commit
995251109fa3e631e6fc7204e8cad128e8da2217
doc/refs: backtick-quote commands and options consistently
The git-refs doc was converted to the synopsis style in 89be7d2774 (builtin/refs: add '--no-reflog' flag to drop reflogs, 2025-02-21). The commands and options were not backtick-quoted at that time. 84f3d6e11e (doc lint: check that synopsis manpages have synopsis inlines, 2025-08-11) applied backtick-quotes to the existing commands and options. Subsequently, a number of commands and options were added without such quoting, leaving the documentation rendered inconsistently. Apply backtick-quotes to all entries. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Todd Zullinger <tmz@pobox.com> · 2026-09-15 13:10 UTC · committed by Junio C Hamano
1 file changed,
+7
−7
modified Documentation/git-refs.adoc
| @@ -54,40 +54,40 @@ These limitations may eventually be lifted. | |||
| 54 | 54 | `verify`:: | |
| 55 | 55 | Verify reference database consistency. | |
| 56 | 56 | ||
| 57 | - | list:: | |
| 57 | + | `list`:: | |
| 58 | 58 | List references in the repository with support for filtering, | |
| 59 | 59 | formatting, and sorting. This subcommand is an alias for | |
| 60 | 60 | linkgit:git-for-each-ref[1] and offers identical functionality. | |
| 61 | 61 | ||
| 62 | - | exists:: | |
| 62 | + | `exists`:: | |
| 63 | 63 | Check whether the given reference exists. Returns an exit code of 0 if | |
| 64 | 64 | it does, 2 if it is missing, and 1 in case looking up the reference | |
| 65 | 65 | failed with an error other than the reference being missing. This does | |
| 66 | 66 | not verify whether the reference resolves to an actual object. | |
| 67 | 67 | ||
| 68 | - | optimize:: | |
| 68 | + | `optimize`:: | |
| 69 | 69 | Optimizes references to improve repository performance and reduce disk | |
| 70 | 70 | usage. This subcommand is an alias for linkgit:git-pack-refs[1] and | |
| 71 | 71 | offers identical functionality. | |
| 72 | 72 | ||
| 73 | - | create:: | |
| 73 | + | `create`:: | |
| 74 | 74 | Create the given reference, which must not already exist, pointing at | |
| 75 | 75 | `<new-value>`. | |
| 76 | 76 | ||
| 77 | - | delete:: | |
| 77 | + | `delete`:: | |
| 78 | 78 | Delete the given reference. This subcommand mirrors `git update-ref -d` | |
| 79 | 79 | (see linkgit:git-update-ref[1]). When `<old-value>` is given, the | |
| 80 | 80 | reference is only deleted after verifying that it currently contains | |
| 81 | 81 | `<old-value>`. | |
| 82 | 82 | ||
| 83 | - | update:: | |
| 83 | + | `update`:: | |
| 84 | 84 | Update the given reference to point at `<new-value>`. If `<old-value>` | |
| 85 | 85 | is given, the reference is only updated after verifying that it | |
| 86 | 86 | currently contains `<old-value>`. As a special case, an all-zeroes | |
| 87 | 87 | `<new-value>` deletes the branch, whereas an all-zeroes `<old-value>` | |
| 88 | 88 | ensures that the branch does not yet exist. | |
| 89 | 89 | ||
| 90 | - | rename:: | |
| 90 | + | `rename`:: | |
| 91 | 91 | Rename the reference `<oldref>` to `<newref>`. The old reference must | |
| 92 | 92 | exist and the new reference must not yet exist, and both must have a | |
| 93 | 93 | well-formed name (see linkgit:git-check-ref-format[1]). | |