MCPcopy Create free account
hub / github.com/git/git / fetch_negotiator_init

Function fetch_negotiator_init

fetch-negotiator.c:8–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "repository.h"
7
8void fetch_negotiator_init(struct repository *r,
9 struct fetch_negotiator *negotiator)
10{
11 prepare_repo_settings(r);
12 switch(r->settings.fetch_negotiation_algorithm) {
13 case FETCH_NEGOTIATION_SKIPPING:
14 skipping_negotiator_init(negotiator);
15 return;
16
17 case FETCH_NEGOTIATION_NOOP:
18 noop_negotiator_init(negotiator);
19 return;
20
21 case FETCH_NEGOTIATION_CONSECUTIVE:
22 default_negotiator_init(negotiator);
23 return;
24 }
25}
26
27void fetch_negotiator_init_noop(struct fetch_negotiator *negotiator)
28{

Callers 3

do_fetch_packFunction · 0.85
do_fetch_pack_v2Function · 0.85
negotiate_using_fetchFunction · 0.85

Calls 4

prepare_repo_settingsFunction · 0.85
skipping_negotiator_initFunction · 0.85
noop_negotiator_initFunction · 0.85
default_negotiator_initFunction · 0.85

Tested by

no test coverage detected