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/p3010-ls-files.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 / p3010-ls-files.sh` 31 lines ยท 712 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='Tests ls-files worktree performance' 4 5 . ./perf-lib.sh 6 7 test_perf_large_repo 8 test_checkout_worktree 9 10 test_expect_success 'select a zero-prefix pathspec' ' 11 tracked_file=$(git ls-files | sed -n 1p) && 12 test -n "$tracked_file" && 13 pathspec="?${tracked_file#?}" && 14 test_export pathspec 15 ' 16 17 test_perf 'ls-files --deleted with pathspec' ' 18 git -c core.fsmonitor=false ls-files --deleted \ 19 -- "$pathspec" >/dev/null 20 ' 21 22 test_perf 'ls-files --deleted with all-matching pathspec' ' 23 git -c core.fsmonitor=false ls-files --deleted -- "*" >/dev/null 24 ' 25 26 test_perf 'ls-files --modified with pathspec' ' 27 git -c core.fsmonitor=false ls-files --modified \ 28 -- "$pathspec" >/dev/null 29 ' 30 31 test_done