git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
3e028683e824fe6834e39f298d4f120736d549af blob 1222 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
 
#!/bin/sh

test_description="Tests index versions [23]/4/5"

. ./perf-lib.sh

test_perf_large_repo

test_expect_success "convert to v3" "
	git update-index --index-version=2
"

test_perf "v[23]: update-index" "
	git update-index --index-version=2 >/dev/null
"

subdir=$(git ls-files | sed 's#/[^/]*$##' | grep -v '^$' | uniq | tail -n 30 | head -1)

test_perf "v[23]: grep nonexistent -- subdir" "
	test_must_fail git grep nonexistent -- $subdir >/dev/null
"

test_perf "v[23]: ls-files -- subdir" "
	git ls-files $subdir >/dev/null
"

test_expect_success "convert to v4" "
	git update-index --index-version=4
"

test_perf "v4: update-index" "
	git update-index --index-version=4 >/dev/null
"

test_perf "v4: grep nonexistent -- subdir" "
	test_must_fail git grep nonexistent -- $subdir >/dev/null
"

test_perf "v4: ls-files -- subdir" "
	git ls-files $subdir >/dev/null
"

test_expect_success "convert to v5" "
	git update-index --index-version=5
"

test_perf "v5: update-index" "
	git update-index --index-version=5 >/dev/null
"

test_perf "v5: grep nonexistent -- subdir" "
	test_must_fail git grep nonexistent -- $subdir >/dev/null
"

test_perf "v5: ls-files -- subdir" "
	git ls-files $subdir >/dev/null
"

test_done
debug log:

solving 3e02868 ...
found 3e02868 in https://public-inbox.org/git/1373184720-29767-23-git-send-email-t.gummerer@gmail.com/ ||
	https://public-inbox.org/git/1373650024-3001-20-git-send-email-t.gummerer@gmail.com/

applying [1/2] https://public-inbox.org/git/1373184720-29767-23-git-send-email-t.gummerer@gmail.com/
diff --git a/t/perf/p0003-index.sh b/t/perf/p0003-index.sh
new file mode 100755
index 0000000..3e02868

Checking patch t/perf/p0003-index.sh...
Applied patch t/perf/p0003-index.sh cleanly.

skipping https://public-inbox.org/git/1373650024-3001-20-git-send-email-t.gummerer@gmail.com/ for 3e02868
index at:
100755 3e028683e824fe6834e39f298d4f120736d549af	t/perf/p0003-index.sh

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