]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-multi-pack-index(1): align SYNOPSIS with 'git multi-pack-index -h'
authorTaylor Blau <me@ttaylorr.com>
Sat, 6 Dec 2025 20:31:13 +0000 (15:31 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Dec 2025 22:38:06 +0000 (07:38 +0900)
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>
Documentation/git-multi-pack-index.adoc
builtin/multi-pack-index.c
t/t0450/adoc-help-mismatches

index a502819fc38858da1c8134e4ad7ebe7e219a7b98..164cf1f2291b999a09fa9cf5dff67af69c951c11 100644 (file)
@@ -9,7 +9,12 @@ git-multi-pack-index - Write and verify multi-pack-indexes
 SYNOPSIS
 --------
 [verse]
-'git multi-pack-index' [--object-dir=<dir>] [--[no-]bitmap] <sub-command>
+'git multi-pack-index' [<options>] write [--preferred-pack=<pack>]
+                        [--[no-]bitmap] [--[no-]incremental] [--[no-]stdin-packs]
+                        [--refs-snapshot=<path>]
+'git multi-pack-index' [<options>] verify
+'git multi-pack-index' [<options>] expire
+'git multi-pack-index' [<options>] repack [--batch-size=<size>]
 
 DESCRIPTION
 -----------
index ca98d4c3ba3c2fee867cd98a98bf8e2eef2652f8..c0c6c1760c0f28483b4057a9e6d9112bd3465029 100644 (file)
@@ -13,8 +13,9 @@
 #include "repository.h"
 
 #define BUILTIN_MIDX_WRITE_USAGE \
-       N_("git multi-pack-index [<options>] write [--preferred-pack=<pack>]" \
-          "[--refs-snapshot=<path>]")
+       N_("git multi-pack-index [<options>] write [--preferred-pack=<pack>]\n" \
+          "  [--[no-]bitmap] [--[no-]incremental] [--[no-]stdin-packs]\n" \
+          "  [--refs-snapshot=<path>]")
 
 #define BUILTIN_MIDX_VERIFY_USAGE \
        N_("git multi-pack-index [<options>] verify")
index 8ee2d3f7c815023d2c9520d270489a0daf36896f..e8d6c13ccd0333614acf0d31c9b2613f80d1fc1b 100644 (file)
@@ -33,7 +33,6 @@ merge
 merge-file
 merge-index
 merge-one-file
-multi-pack-index
 name-rev
 notes
 push