diff options
Diffstat (limited to 'fetch-negotiator.c')
-rw-r--r-- | fetch-negotiator.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/fetch-negotiator.c b/fetch-negotiator.c index 0a1357d..be38336 100644 --- a/fetch-negotiator.c +++ b/fetch-negotiator.c @@ -2,6 +2,7 @@ #include "fetch-negotiator.h" #include "negotiator/default.h" #include "negotiator/skipping.h" +#include "negotiator/noop.h" #include "repository.h" void fetch_negotiator_init(struct repository *r, @@ -13,9 +14,17 @@ void fetch_negotiator_init(struct repository *r, skipping_negotiator_init(negotiator); return; - case FETCH_NEGOTIATION_DEFAULT: - default: + case FETCH_NEGOTIATION_NOOP: + noop_negotiator_init(negotiator); + return; + + case FETCH_NEGOTIATION_CONSECUTIVE: default_negotiator_init(negotiator); return; } } + +void fetch_negotiator_init_noop(struct fetch_negotiator *negotiator) +{ + noop_negotiator_init(negotiator); +} |