Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/perf/p7102-reset.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / perf / p7102-reset.sh` 21 lines ยท 364 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='performance of reset' 4 . ./perf-lib.sh 5 6 test_perf_default_repo 7 test_checkout_worktree 8 9 test_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 21 test_done