From 1836836593e90b515269b564b384dcf091a4493d Mon Sep 17 00:00:00 2001 From: Robert Coup Date: Mon, 28 Mar 2022 14:02:05 +0000 Subject: 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 Signed-off-by: Junio C Hamano --- fetch-negotiator.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fetch-negotiator.c') diff --git a/fetch-negotiator.c b/fetch-negotiator.c index 874797d767..be383367f5 100644 --- a/fetch-negotiator.c +++ b/fetch-negotiator.c @@ -23,3 +23,8 @@ void fetch_negotiator_init(struct repository *r, return; } } + +void fetch_negotiator_init_noop(struct fetch_negotiator *negotiator) +{ + noop_negotiator_init(negotiator); +} -- cgit v1.2.3