git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / Atom feed
b223b9b0781e959ba83e94cd2bd7d27fb2316324 blob 916 bytes (raw)

 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
#ifndef COMMIT_GRAPH_H
#define COMMIT_GRAPH_H

#include "git-compat-util.h"

char *get_commit_graph_filename(const char *obj_dir);

/*
 * Given a commit struct, try to fill the commit struct info, including:
 *  1. tree object
 *  2. date
 *  3. parents.
 *
 * Returns 1 if and only if the commit was found in the packed graph.
 *
 * See parse_commit_buffer() for the fallback after this call.
 */
int parse_commit_in_graph(struct commit *item);

struct commit_graph {
	int graph_fd;

	const unsigned char *data;
	size_t data_len;

	unsigned char hash_len;
	unsigned char num_chunks;
	uint32_t num_commits;
	struct object_id oid;

	const uint32_t *chunk_oid_fanout;
	const unsigned char *chunk_oid_lookup;
	const unsigned char *chunk_commit_data;
	const unsigned char *chunk_large_edges;
};

struct commit_graph *load_commit_graph_one(const char *graph_file);

void write_commit_graph(const char *obj_dir);

#endif

debug log:

solving b223b9b078 ...
found b223b9b078 in https://public-inbox.org/git/20180314192736.70602-12-dstolee@microsoft.com/
found 8b4b0f9f04 in https://public-inbox.org/git/20180314192736.70602-9-dstolee@microsoft.com/
found 4cb3f12d33 in https://public-inbox.org/git/20180314192736.70602-7-dstolee@microsoft.com/

applying [1/3] https://public-inbox.org/git/20180314192736.70602-7-dstolee@microsoft.com/
diff --git a/commit-graph.h b/commit-graph.h
new file mode 100644
index 0000000000..4cb3f12d33


applying [2/3] https://public-inbox.org/git/20180314192736.70602-9-dstolee@microsoft.com/
diff --git a/commit-graph.h b/commit-graph.h
index 4cb3f12d33..8b4b0f9f04 100644


applying [3/3] https://public-inbox.org/git/20180314192736.70602-12-dstolee@microsoft.com/
diff --git a/commit-graph.h b/commit-graph.h
index 8b4b0f9f04..b223b9b078 100644

Checking patch commit-graph.h...
3:13: new blank line at EOF.
+
Applied patch commit-graph.h cleanly.
Checking patch commit-graph.h...
Applied patch commit-graph.h cleanly.
Checking patch commit-graph.h...
Applied patch commit-graph.h cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 b223b9b0781e959ba83e94cd2bd7d27fb2316324	commit-graph.h

git@vger.kernel.org list mirror (unofficial, one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git