git-multi-pack-index(1): align SYNOPSIS with 'git multi-pack-index -h'

Since c39fffc1c90 (tests: start asserting that *.txt SYNOPSIS matches -h output, 2022-10-13), the manual page for 'git multi-pack-index' has a SYNOPSIS section which differs from 'git multi-pack-index -h'. Correct this while also documenting additional options accepted by the 'write' sub-command. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Feb 24, 2026 at 13:59 UTC d0e91c128b99ca86e31e4c0e9ef80643039709f9
3 files changed +9 -4
Documentation/git-multi-pack-index.adoc
+6 -1
@@ -9,7 +9,12 @@ git-multi-pack-index - Write and verify multi-pack-indexes
9 SYNOPSIS
10 --------
11 [verse]
12 -'git multi-pack-index' [--object-dir=<dir>] [--[no-]bitmap] <sub-command>
12 +'git multi-pack-index' [<options>] write [--preferred-pack=<pack>]
13 + [--[no-]bitmap] [--[no-]incremental] [--[no-]stdin-packs]
14 + [--refs-snapshot=<path>]
15 +'git multi-pack-index' [<options>] verify
16 +'git multi-pack-index' [<options>] expire
17 +'git multi-pack-index' [<options>] repack [--batch-size=<size>]
18
19 DESCRIPTION
20 -----------
builtin/multi-pack-index.c
+3 -2
@@ -13,8 +13,9 @@
13 #include "repository.h"
14
15 #define BUILTIN_MIDX_WRITE_USAGE \
16 - N_("git multi-pack-index [<options>] write [--preferred-pack=<pack>]" \
17 - "[--refs-snapshot=<path>]")
16 + N_("git multi-pack-index [<options>] write [--preferred-pack=<pack>]\n" \
17 + " [--[no-]bitmap] [--[no-]incremental] [--[no-]stdin-packs]\n" \
18 + " [--refs-snapshot=<path>]")
19
20 #define BUILTIN_MIDX_VERIFY_USAGE \
21 N_("git multi-pack-index [<options>] verify")
t/t0450/adoc-help-mismatches
-1
@@ -33,7 +33,6 @@ merge
33 merge-file
34 merge-index
35 merge-one-file
36 -multi-pack-index
36 name-rev
37 notes
38 push