promisor-remote: parse remote.*.partialclonefilter

This makes it possible to specify a different partial clone
filter for each promisor remote.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Christian Couder
2019-06-25 15:40:32 +02:00
committed by Junio C Hamano
parent b14ed5adaf
commit fa3d1b63e8
8 changed files with 40 additions and 17 deletions

View File

@ -5,10 +5,13 @@ struct object_id;
/*
* Promisor remote linked list
* Its information come from remote.XXX config entries.
*
* Information in its fields come from remote.XXX config entries or
* from extensions.partialclone or core.partialclonefilter.
*/
struct promisor_remote {
struct promisor_remote *next;
const char *partial_clone_filter;
const char name[FLEX_ARRAY];
};