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/p4001-diff-no-index.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 / p4001-diff-no-index.sh` 22 lines ยท 404 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description="Test diff --no-index performance" 4 5 . ./perf-lib.sh 6 7 test_perf_large_repo 8 test_checkout_worktree 9 10 file1=$(git ls-files | tail -n 2 | head -1) 11 file2=$(git ls-files | tail -n 1 | head -1) 12 13 test_expect_success "empty files, so they take no time to diff" " 14 echo >$file1 && 15 echo >$file2 16 " 17 18 test_perf "diff --no-index" " 19 git diff --no-index $file1 $file2 >/dev/null 20 " 21 22 test_done