Staging
v0.5.1
https://github.com/git/git
Revision 7a6a90c6ec48fc78c83d7090d6c1b95d8f3739c0 authored by Junio C Hamano on 08 January 2020, 20:43:54 UTC, committed by Junio C Hamano on 08 January 2020, 20:44:13 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 1f5f3ff
Raw File
Tip revision: 7a6a90c6ec48fc78c83d7090d6c1b95d8f3739c0 authored by Junio C Hamano on 08 January 2020, 20:43:54 UTC
Git 2.25-rc2
Tip revision: 7a6a90c
fetch-negotiator.c
#include "git-compat-util.h"
#include "fetch-negotiator.h"
#include "negotiator/default.h"
#include "negotiator/skipping.h"
#include "repository.h"

void fetch_negotiator_init(struct repository *r,
			   struct fetch_negotiator *negotiator)
{
	prepare_repo_settings(r);
	switch(r->settings.fetch_negotiation_algorithm) {
	case FETCH_NEGOTIATION_SKIPPING:
		skipping_negotiator_init(negotiator);
		return;

	case FETCH_NEGOTIATION_DEFAULT:
	default:
		default_negotiator_init(negotiator);
		return;
	}
}
back to top