fetch-negotiator: add specific noop initializer
Add a specific initializer for the noop fetch negotiator. This is introduced to support allowing partial clones to skip commit negotiation when performing a "refetch". Signed-off-by: Robert Coup <robert@coup.net.nz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
dab1b7905d
commit
1836836593
@ -23,3 +23,8 @@ void fetch_negotiator_init(struct repository *r,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void fetch_negotiator_init_noop(struct fetch_negotiator *negotiator)
|
||||||
|
{
|
||||||
|
noop_negotiator_init(negotiator);
|
||||||
|
}
|
||||||
|
@ -53,7 +53,15 @@ struct fetch_negotiator {
|
|||||||
void *data;
|
void *data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize a negotiator based on the repository settings.
|
||||||
|
*/
|
||||||
void fetch_negotiator_init(struct repository *r,
|
void fetch_negotiator_init(struct repository *r,
|
||||||
struct fetch_negotiator *negotiator);
|
struct fetch_negotiator *negotiator);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize a noop negotiator.
|
||||||
|
*/
|
||||||
|
void fetch_negotiator_init_noop(struct fetch_negotiator *negotiator);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user