summaryrefslogtreecommitdiff
path: root/t/perf/p8020-last-modified.sh
blob: cb1f98d3db9f4ef12df60975fff7528e69033c26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

test_description='last-modified perf tests'
. ./perf-lib.sh

test_perf_default_repo

test_perf 'top-level last-modified' '
	git last-modified HEAD
'

test_perf 'top-level recursive last-modified' '
	git last-modified -r HEAD
'

test_perf 'subdir last-modified' '
	git ls-tree -d HEAD >subtrees &&
	path="$(head -n 1 subtrees | cut -f2)" &&
	git last-modified -r HEAD -- "$path"
'

test_done