]> git.ipfire.org Git - thirdparty/git.git/blame - t/t4062-diff-pickaxe.sh
configure.ac: improve description of NO_REGEX test
[thirdparty/git.git] / t / t4062-diff-pickaxe.sh
CommitLineData
db5dfa33
JS
1#!/bin/sh
2#
3# Copyright (c) 2016 Johannes Schindelin
4#
5
6test_description='Pickaxe options'
7
8. ./test-lib.sh
9
10test_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'
b7d36ffc 17test_expect_success '-G matches' '
db5dfa33
JS
18 git diff --name-only -G "^0{4096}$" HEAD^ >out &&
19 test 4096-zeroes.txt = "$(cat out)"
20'
21
22test_done