git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / Atom feed
5abf96917584f522332a98aa3d04f1143a60c20d blob 645 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
 
/*
 * test-mktemp.c: code to exercise the creation of temporary files
 */
#include "test-tool.h"
#include "cache.h"
#include "midx.h"
#include "repository.h"
#include "object-store.h"

static int read_midx_file(const char *object_dir)
{
	struct multi_pack_index *m = load_multi_pack_index(object_dir);

	if (!m)
		return 0;

	printf("header: %08x %d %d %d\n",
	       m->signature,
	       m->version,
	       m->num_chunks,
	       m->num_packs);

	printf("object_dir: %s\n", m->object_dir);

	return 0;
}

int cmd__read_midx(int argc, const char **argv)
{
	if (argc != 2)
		usage("read-midx <object_dir>");

	return read_midx_file(argv[1]);
}
debug log:

solving 5abf969175 ...
found 5abf969175 in https://public-inbox.org/git/20180625143434.89044-7-dstolee@microsoft.com/ ||
	https://public-inbox.org/git/20180706005321.124643-7-dstolee@microsoft.com/

applying [1/2] https://public-inbox.org/git/20180625143434.89044-7-dstolee@microsoft.com/
diff --git a/t/helper/test-read-midx.c b/t/helper/test-read-midx.c
new file mode 100644
index 0000000000..5abf969175

Checking patch t/helper/test-read-midx.c...
Applied patch t/helper/test-read-midx.c cleanly.

skipping https://public-inbox.org/git/20180706005321.124643-7-dstolee@microsoft.com/ for 5abf969175
index at:
100644 5abf96917584f522332a98aa3d04f1143a60c20d	t/helper/test-read-midx.c

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