interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / perf / p8020-last-modified.sh

22 lines · 402 bytes Raw Blame History
1#!/bin/sh
2
3test_description='last-modified perf tests'
4. ./perf-lib.sh
5
6test_perf_default_repo
7
8test_perf 'top-level last-modified' '
9 git last-modified HEAD
10'
11
12test_perf 'top-level recursive last-modified' '
13 git last-modified -r HEAD
14'
15
16test_perf 'subdir last-modified' '
17 git ls-tree -d HEAD >subtrees &&
18 path="$(head -n 1 subtrees | cut -f2)" &&
19 git last-modified -r HEAD -- "$path"
20'
21
22test_done