git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
65545a752948b81c8944b7a69ea23ef822e0959c blob 356 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
#include "cache.h"

struct cache_version_header {
	unsigned int hdr_signature;
	unsigned int hdr_version;
};

int main(int argc, char **argv)
{
	struct cache_version_header hdr;
	int version;

	memset(&hdr,0,sizeof(hdr));
	if (read(0, &hdr, sizeof(hdr)) != sizeof(hdr))
		return 0;
	version = ntohl(hdr.hdr_version);
	printf("%d\n", version);
	return 0;
}
debug log:

solving 65545a7 ...
found 65545a7 in https://public-inbox.org/git/1373184720-29767-4-git-send-email-t.gummerer@gmail.com/ ||
	https://public-inbox.org/git/1373650024-3001-4-git-send-email-t.gummerer@gmail.com/
found 4c0386f in https://public-inbox.org/git/1373184720-29767-3-git-send-email-t.gummerer@gmail.com/ ||
	https://public-inbox.org/git/1373650024-3001-3-git-send-email-t.gummerer@gmail.com/
found 05d4699 in git.git.git
preparing index
index prepared:
100644 05d4699c4a6cf32b2b6291e275dafa2744fe19d6	test-index-version.c

applying [1/4] https://public-inbox.org/git/1373184720-29767-3-git-send-email-t.gummerer@gmail.com/
diff --git a/test-index-version.c b/test-index-version.c
index 05d4699..4c0386f 100644

Checking patch test-index-version.c...
Applied patch test-index-version.c cleanly.

skipping https://public-inbox.org/git/1373650024-3001-3-git-send-email-t.gummerer@gmail.com/ for 4c0386f
index at:
100644 4c0386fce9937f0f0e9801320d25d52016bc440f	test-index-version.c

applying [2/4] https://public-inbox.org/git/1373184720-29767-4-git-send-email-t.gummerer@gmail.com/
diff --git a/test-index-version.c b/test-index-version.c
index 4c0386f..65545a7 100644

Checking patch test-index-version.c...
Applied patch test-index-version.c cleanly.

skipping https://public-inbox.org/git/1373650024-3001-4-git-send-email-t.gummerer@gmail.com/ for 65545a7
index at:
100644 65545a752948b81c8944b7a69ea23ef822e0959c	test-index-version.c

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

This inbox may be cloned and mirrored by anyone:

	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

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.version-control.git
	nntp://ie5yzdi7fg72h7s4sdcztq5evakq23rdt33mfyfcddc5u3ndnw24ogqd.onion/inbox.comp.version-control.git
	nntp://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

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

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