]> git.ipfire.org Git - thirdparty/git.git/blame - fetch-negotiator.c
negotiator/skipping: skip commits during fetch
[thirdparty/git.git] / fetch-negotiator.c
CommitLineData
ec062838
JT
1#include "git-compat-util.h"
2#include "fetch-negotiator.h"
3#include "negotiator/default.h"
42cc7485 4#include "negotiator/skipping.h"
ec062838 5
42cc7485
JT
6void fetch_negotiator_init(struct fetch_negotiator *negotiator,
7 const char *algorithm)
ec062838 8{
42cc7485
JT
9 if (algorithm && !strcmp(algorithm, "skipping")) {
10 skipping_negotiator_init(negotiator);
11 return;
12 }
ec062838
JT
13 default_negotiator_init(negotiator);
14}