diff options
author | Robert Coup <robert@coup.net.nz> | 2022-03-28 14:02:05 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-28 17:25:52 (GMT) |
commit | 1836836593e90b515269b564b384dcf091a4493d (patch) | |
tree | a3e5faf9decd687c7fa4cf6b29b9d62adde054ab /fetch-negotiator.c | |
parent | dab1b7905d0b295f1acef9785bb2b9cbb0fdec84 (diff) | |
download | git-1836836593e90b515269b564b384dcf091a4493d.zip git-1836836593e90b515269b564b384dcf091a4493d.tar.gz git-1836836593e90b515269b564b384dcf091a4493d.tar.bz2 |
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>
Diffstat (limited to 'fetch-negotiator.c')
-rw-r--r-- | fetch-negotiator.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fetch-negotiator.c b/fetch-negotiator.c index 874797d..be38336 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); +} |