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/t5301-sliding-window.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 / t5301-sliding-window.sh` 61 lines ยท 1638 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2006 Shawn Pearce 4 # 5 6 test_description='mmap sliding window tests' 7 8 . ./test-lib.sh 9 10 test_expect_success 'setup' ' 11 rm -f .git/index* && 12 for i in a b c 13 do 14 echo $i >$i && 15 test-tool genrandom "$i" 32k >>$i && 16 git update-index --add $i || return 1 17 done && 18 echo d >d && cat c >>d && git update-index --add d && 19 tree=$(git write-tree) && 20 commit1=$(git commit-tree $tree