Skip to content

Commit ae3770a

Browse files
ttaylorrgitster
authored andcommitted
git-multi-pack-index(1): align SYNOPSIS with 'git multi-pack-index -h'
Since c39fffc (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>
1 parent 10292d3 commit ae3770a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Documentation/git-multi-pack-index.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ git-multi-pack-index - Write and verify multi-pack-indexes
99
SYNOPSIS
1010
--------
1111
[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>]
1318

1419
DESCRIPTION
1520
-----------

builtin/multi-pack-index.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
#include "repository.h"
1414

1515
#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>]")
1819

1920
#define BUILTIN_MIDX_VERIFY_USAGE \
2021
N_("git multi-pack-index [<options>] verify")

t/t0450/adoc-help-mismatches

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ merge
3333
merge-file
3434
merge-index
3535
merge-one-file
36-
multi-pack-index
3736
name-rev
3837
notes
3938
push

0 commit comments

Comments
 (0)