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/t4062-diff-pickaxe.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 / t4062-diff-pickaxe.sh` 29 lines ยท 631 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2016 Johannes Schindelin 4 # 5 6 test_description='Pickaxe options' 7 8 . ./test-lib.sh 9 10 test_expect_success setup ' 11 test_commit initial && 12 printf "%04096d" 0 >4096-zeroes.txt && 13 git add 4096-zeroes.txt && 14 test_tick && 15 git commit -m "A 4k file" 16 ' 17 18 # OpenBSD only supports up to 255 repetitions, so repeat twice for 64*64=4096. 19 test_expect_success '-G matches' ' 20 git diff --name-only -G "^(0{64}){64}$" HEAD^ >out && 21 test 4096-zeroes.txt = "$(cat out)" 22 ' 23 24 test_expect_success '-S --pickaxe-regex' ' 25 git diff --name-only -S0 --pickaxe-regex HEAD^ >out && 26 test 4096-zeroes.txt = "$(cat out)" 27 ' 28 29 test_done