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 / p7102-reset.sh

21 lines · 364 bytes Raw Blame History
1#!/bin/sh
2
3test_description='performance of reset'
4. ./perf-lib.sh
5
6test_perf_default_repo
7test_checkout_worktree
8
9test_perf 'reset --hard with change in tree' '
10 base=$(git rev-parse HEAD) &&
11 test_commit --no-tag A &&
12 new=$(git rev-parse HEAD) &&
13
14 for i in $(test_seq 10)
15 do
16 git reset --hard $new &&
17 git reset --hard $base || return $?
18 done
19'
20
21test_done