]> git.ipfire.org Git - thirdparty/git.git/blame_incremental - fetch-negotiator.c
l10n: it.po: update the Italian translation for Git 2.24.0 round #2
[thirdparty/git.git] / fetch-negotiator.c
... / ...
CommitLineData
1#include "git-compat-util.h"
2#include "fetch-negotiator.h"
3#include "negotiator/default.h"
4#include "negotiator/skipping.h"
5#include "repository.h"
6
7void fetch_negotiator_init(struct repository *r,
8 struct fetch_negotiator *negotiator)
9{
10 prepare_repo_settings(r);
11 switch(r->settings.fetch_negotiation_algorithm) {
12 case FETCH_NEGOTIATION_SKIPPING:
13 skipping_negotiator_init(negotiator);
14 return;
15
16 case FETCH_NEGOTIATION_DEFAULT:
17 default:
18 default_negotiator_init(negotiator);
19 return;
20 }
21}