Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fetch-negotiator.c - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d283049f4ac0a1282db16dd9d61cffd2b9a53dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "git-compat-util.h"
#include "fetch-negotiator.h"
#include "negotiator/default.h"
#include "negotiator/skipping.h"

void fetch_negotiator_init(struct fetch_negotiator *negotiator,
			   const char *algorithm)
{
	if (algorithm && !strcmp(algorithm, "skipping")) {
		skipping_negotiator_init(negotiator);
		return;
	}
	default_negotiator_init(negotiator);
}