Skip to content

Commit 1090e9a

Browse files
tnm-oaigitster
authored andcommitted
http-fetch: correct --index-pack-arg documentation
The --packfile mode accepts one --index-pack-arg=<arg> option per argument passed to index-pack, but its documentation and option dependency errors still refer to the plural --index-pack-args form. Correct the spelling and describe the repeatable per-argument form. Signed-off-by: Ted Nyman <tnyman@openai.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 55526a1 commit 1090e9a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Documentation/git-http-fetch.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ commit-id::
5050
URL and uses index-pack to generate corresponding .idx and .keep files.
5151
The hash is used to determine the name of the temporary file and is
5252
arbitrary. The output of index-pack is printed to stdout. Requires
53-
--index-pack-args.
53+
one or more --index-pack-arg options.
5454

55-
--index-pack-args=<args>::
56-
For internal use only. The command to run on the contents of the
57-
downloaded pack. Arguments are URL-encoded separated by spaces.
55+
--index-pack-arg=<arg>::
56+
For internal use only. An argument to the command run on the contents
57+
of the downloaded pack. This option can be specified multiple times.
5858

5959
--recover::
6060
Verify that everything reachable from target is fetched. Used after

http-fetch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ int cmd_main(int argc, const char **argv)
155155

156156
if (packfile) {
157157
if (!index_pack_args.nr)
158-
die(_("the option '%s' requires '%s'"), "--packfile", "--index-pack-args");
158+
die(_("the option '%s' requires '%s'"), "--packfile", "--index-pack-arg");
159159

160160
fetch_single_packfile(&packfile_hash, argv[arg],
161161
index_pack_args.v);
@@ -164,7 +164,7 @@ int cmd_main(int argc, const char **argv)
164164
}
165165

166166
if (index_pack_args.nr)
167-
die(_("the option '%s' requires '%s'"), "--index-pack-args", "--packfile");
167+
die(_("the option '%s' requires '%s'"), "--index-pack-arg", "--packfile");
168168

169169
if (commits_on_stdin) {
170170
commits = walker_targets_stdin(&commit_id, &write_ref);

0 commit comments

Comments
 (0)