Merge branch 'jc/qsort-s-alignment-fix'
[git/debian.git] / fetch-negotiator.c
blob273390229fe4c442915e911b421339e2391fc37c
1 #include "git-compat-util.h"
2 #include "fetch-negotiator.h"
3 #include "negotiator/default.h"
4 #include "negotiator/skipping.h"
5 #include "negotiator/noop.h"
6 #include "repository.h"
8 void fetch_negotiator_init(struct repository *r,
9 struct fetch_negotiator *negotiator)
11 prepare_repo_settings(r);
12 switch(r->settings.fetch_negotiation_algorithm) {
13 case FETCH_NEGOTIATION_SKIPPING:
14 skipping_negotiator_init(negotiator);
15 return;
17 case FETCH_NEGOTIATION_NOOP:
18 noop_negotiator_init(negotiator);
19 return;
21 case FETCH_NEGOTIATION_DEFAULT:
22 default_negotiator_init(negotiator);
23 return;