Commit
db06ca011e12b8156f327c59f6d643ca7799d453
doc/pack-refs: convert synopsis and options to new style
Replace [verse] with [synopsis] in the SYNOPSIS block and remove single-quote formatting from the command name. Backtick-quote all option terms in the OPTIONS section via the included pack-refs-options.adoc and convert the standalone placeholder _<branch>_ in prose. 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
2 files changed,
+9
−9
modified Documentation/git-pack-refs.adoc
| @@ -7,8 +7,8 @@ git-pack-refs - Pack heads and tags for efficient repository access | |||
| 7 | 7 | ||
| 8 | 8 | SYNOPSIS | |
| 9 | 9 | -------- | |
| 10 | - | [verse] | |
| 11 | - | 'git pack-refs' [--all] [--no-prune] [--auto] [--include <pattern>] [--exclude <pattern>] | |
| 10 | + | [synopsis] | |
| 11 | + | git pack-refs [--all] [--no-prune] [--auto] [--include <pattern>] [--exclude <pattern>] | |
| 12 | 12 | ||
| 13 | 13 | DESCRIPTION | |
| 14 | 14 | ----------- | |
| @@ -52,8 +52,8 @@ BUGS | |||
| 52 | 52 | ---- | |
| 53 | 53 | ||
| 54 | 54 | Older documentation written before the packed-refs mechanism was | |
| 55 | - | introduced may still say things like ".git/refs/heads/<branch> file | |
| 56 | - | exists" when it means "branch <branch> exists". | |
| 55 | + | introduced may still say things like ".git/refs/heads/_<branch>_ file | |
| 56 | + | exists" when it means "branch _<branch>_ exists". | |
| 57 | 57 | ||
| 58 | 58 | ||
| 59 | 59 | GIT | |
modified Documentation/pack-refs-options.adoc
| @@ -1,4 +1,4 @@ | |||
| 1 | - | --all:: | |
| 1 | + | `--all`:: | |
| 2 | 2 | ||
| 3 | 3 | The command by default packs all tags and refs that are already | |
| 4 | 4 | packed, and leaves other refs | |
| @@ -8,12 +8,12 @@ This option causes all refs to be packed as well, with the exception | |||
| 8 | 8 | of hidden refs, broken refs, and symbolic refs. Useful for a repository | |
| 9 | 9 | with many branches of historical interests. | |
| 10 | 10 | ||
| 11 | - | --no-prune:: | |
| 11 | + | `--no-prune`:: | |
| 12 | 12 | ||
| 13 | 13 | The command usually removes loose refs under `$GIT_DIR/refs` | |
| 14 | 14 | hierarchy after packing them. This option tells it not to. | |
| 15 | 15 | ||
| 16 | - | --auto:: | |
| 16 | + | `--auto`:: | |
| 17 | 17 | ||
| 18 | 18 | Pack refs as needed depending on the current state of the ref database. The | |
| 19 | 19 | behavior depends on the ref format used by the repository and may change in the | |
| @@ -29,7 +29,7 @@ future. | |||
| 29 | 29 | maintains the property that N is at least twice as big as N+1. Only | |
| 30 | 30 | tables that violate this property are compacted. | |
| 31 | 31 | ||
| 32 | - | --include <pattern>:: | |
| 32 | + | `--include <pattern>`:: | |
| 33 | 33 | ||
| 34 | 34 | Pack refs based on a `glob(7)` pattern. Repetitions of this option | |
| 35 | 35 | accumulate inclusion patterns. If a ref is both included in `--include` and | |
| @@ -38,7 +38,7 @@ tags from being included by default. Symbolic refs and broken refs will never | |||
| 38 | 38 | be packed. When used with `--all`, it will be a noop. Use `--no-include` to clear | |
| 39 | 39 | and reset the list of patterns. | |
| 40 | 40 | ||
| 41 | - | --exclude <pattern>:: | |
| 41 | + | `--exclude <pattern>`:: | |
| 42 | 42 | ||
| 43 | 43 | Do not pack refs matching the given `glob(7)` pattern. Repetitions of this option | |
| 44 | 44 | accumulate exclusion patterns. Use `--no-exclude` to clear and reset the list of | |