/src/git/fetch-negotiator.c
Line | Count | Source (jump to first uncovered line) |
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" |
7 | | |
8 | | void fetch_negotiator_init(struct repository *r, |
9 | | struct fetch_negotiator *negotiator) |
10 | 0 | { |
11 | 0 | prepare_repo_settings(r); |
12 | 0 | switch(r->settings.fetch_negotiation_algorithm) { |
13 | 0 | case FETCH_NEGOTIATION_SKIPPING: |
14 | 0 | skipping_negotiator_init(negotiator); |
15 | 0 | return; |
16 | | |
17 | 0 | case FETCH_NEGOTIATION_NOOP: |
18 | 0 | noop_negotiator_init(negotiator); |
19 | 0 | return; |
20 | | |
21 | 0 | case FETCH_NEGOTIATION_CONSECUTIVE: |
22 | 0 | default_negotiator_init(negotiator); |
23 | 0 | return; |
24 | 0 | } |
25 | 0 | } |
26 | | |
27 | | void fetch_negotiator_init_noop(struct fetch_negotiator *negotiator) |
28 | 0 | { |
29 | 0 | noop_negotiator_init(negotiator); |
30 | 0 | } |