1#!/bin/sh
2#
3# Copyright (c) 2016 Johannes Schindelin
4#
56
test_description='Pickaxe options'
78
. ./test-lib.sh
910
test_expect_success setup '
11test_commit initial &&
12printf "%04096d" 0 >4096-zeroes.txt &&
13git add 4096-zeroes.txt &&
14test_tick &&
15git commit -m "A 4k file"
16'
17test_expect_success '-G matches' '
18git diff --name-only -G "^0{4096}$" HEAD^ >out &&
19test 4096-zeroes.txt = "$(cat out)"
20'
2122
test_done