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/p5304-prune.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 / p5304-prune.sh` 35 lines ยท 715 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='performance tests of prune' 4 . ./perf-lib.sh 5 6 test_perf_default_repo 7 8 test_expect_success 'remove reachable loose objects' ' 9 git repack -ad 10 ' 11 12 test_expect_success 'remove unreachable loose objects' ' 13 git prune 14 ' 15 16 test_expect_success 'confirm there are no loose objects' ' 17 git count-objects | grep ^0 18 ' 19 20 test_perf 'prune with no objects' ' 21 git prune 22 ' 23 24 test_expect_success 'repack with bitmaps' ' 25 git repack -adb 26 ' 27 28 # We have to create the object in each trial run, since otherwise 29 # runs after the first see no object and just skip the traversal entirely! 30 test_perf 'prune with bitmaps' ' 31 echo "probably not present in repo" | git hash-object -w --stdin && 32 git prune 33 ' 34 35 test_done