index-pack: document and test the --promisor option
commit1f52cdfacb6af203cdcc6a5101fc8cb5fff72735
authorDerrick Stolee <derrickstolee@github.com>
Wed, 9 Mar 2022 16:01:31 +0000 (9 16:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Mar 2022 18:25:26 +0000 (9 10:25 -0800)
treee6d0de9562311f63bf55a53552c27609a9a142ec
parentdab1b7905d0b295f1acef9785bb2b9cbb0fdec84
index-pack: document and test the --promisor option

The --promisor option of 'git index-pack' was created in 88e2f9e
(introduce fetch-object: fetch one promisor object, 2017-12-05) but was
untested. It is currently unused within the Git codebase, but that will
change in an upcoming change to 'git bundle unbundle' when there is a
filter capability.

For now, add documentation about the option and add a test to ensure it
is working as expected.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-index-pack.txt
t/t5300-pack-object.sh