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/t5315-pack-objects-compression.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 / t5315-pack-objects-compression.sh` 38 lines ยท 1007 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='pack-object compression configuration' 4 5 . ./test-lib.sh 6 7 test_expect_success setup ' 8 printf "%2000000s" X | 9 git hash-object -w --stdin >object-name && 10 # make sure it resulted in a loose object 11 ob=$(sed -e "s/\(..\).*/\1/" object-name) && 12 ject=$(sed -e "s/..\(.*\)/\1/" object-name) && 13 test_path_is_file .git/objects/$ob/$ject 14 ' 15 16 while read expect config 17 do 18 test_expect_success "pack-objects with $config" ' 19 test_when_finished "rm -f pack-*.*" && 20 git $config pack-objects pack