git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
blob c7c0eda7e210afceeade9f997ad9078c9b96b826 662 bytes (raw)
name: fetch-negotiator.c 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
#include "git-compat-util.h"
#include "fetch-negotiator.h"
#include "negotiator/default.h"
#include "negotiator/skipping.h"
#include "negotiator/noop.h"
#include "repository.h"

void fetch_negotiator_init(struct repository *r,
			   struct fetch_negotiator *negotiator)
{
	enum fetch_negotiation_setting setting;
	prepare_repo_settings(r);
	setting = r->settings.fetch_negotiation_algorithm;

	switch (setting) {
	case FETCH_NEGOTIATION_SKIPPING:
		skipping_negotiator_init(negotiator);
		return;

	case FETCH_NEGOTIATION_NOOP:
		noop_negotiator_init(negotiator);
		return;

	case FETCH_NEGOTIATION_DEFAULT:
		default_negotiator_init(negotiator);
		return;
	}
}

debug log:

solving c7c0eda7e21 ...
found c7c0eda7e21 in https://public-inbox.org/git/patch-1.1-e1d8c842c70-20210428T161817Z-avarab@gmail.com/
found 57ed5784e14 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100644 57ed5784e1468aa661d59446273ba9cbbad760ca	fetch-negotiator.c

applying [1/1] https://public-inbox.org/git/patch-1.1-e1d8c842c70-20210428T161817Z-avarab@gmail.com/
diff --git a/fetch-negotiator.c b/fetch-negotiator.c
index 57ed5784e14..c7c0eda7e21 100644

Checking patch fetch-negotiator.c...
Applied patch fetch-negotiator.c cleanly.

index at:
100644 c7c0eda7e210afceeade9f997ad9078c9b96b826	fetch-negotiator.c

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).