Skip to content

Commit 7076e44

Browse files
dschogitster
authored andcommitted
t7810: do not abbreviate --no-exclude-standard nor --invert-match
This script used abbreviated options, which is unnecessarily fragile. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f927ae6 commit 7076e44

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

t/t7810-grep.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,33 +119,33 @@ do
119119
test_cmp expected actual
120120
'
121121

122-
test_expect_success "grep -w $L (with --column, --invert)" '
122+
test_expect_success "grep -w $L (with --column, --invert-match)" '
123123
{
124124
echo ${HC}file:1:foo mmap bar
125125
echo ${HC}file:1:foo_mmap bar
126126
echo ${HC}file:1:foo_mmap bar mmap
127127
echo ${HC}file:1:foo mmap bar_mmap
128128
} >expected &&
129-
git grep --column --invert -w -e baz $H -- file >actual &&
129+
git grep --column --invert-match -w -e baz $H -- file >actual &&
130130
test_cmp expected actual
131131
'
132132

133-
test_expect_success "grep $L (with --column, --invert, extended OR)" '
133+
test_expect_success "grep $L (with --column, --invert-match, extended OR)" '
134134
{
135135
echo ${HC}hello_world:6:HeLLo_world
136136
} >expected &&
137-
git grep --column --invert -e ll --or --not -e _ $H -- hello_world \
137+
git grep --column --invert-match -e ll --or --not -e _ $H -- hello_world \
138138
>actual &&
139139
test_cmp expected actual
140140
'
141141

142-
test_expect_success "grep $L (with --column, --invert, extended AND)" '
142+
test_expect_success "grep $L (with --column, --invert-match, extended AND)" '
143143
{
144144
echo ${HC}hello_world:3:Hello world
145145
echo ${HC}hello_world:3:Hello_world
146146
echo ${HC}hello_world:6:HeLLo_world
147147
} >expected &&
148-
git grep --column --invert --not -e _ --and --not -e ll $H -- hello_world \
148+
git grep --column --invert-match --not -e _ --and --not -e ll $H -- hello_world \
149149
>actual &&
150150
test_cmp expected actual
151151
'
@@ -1010,7 +1010,7 @@ test_expect_success 'outside of git repository' '
10101010
echo ".gitignore:.*o*" &&
10111011
cat ../expect.full
10121012
} >../expect.with.ignored &&
1013-
git grep --no-index --no-exclude o >../actual.full &&
1013+
git grep --no-index --no-exclude-standard o >../actual.full &&
10141014
test_cmp ../expect.with.ignored ../actual.full
10151015
)
10161016
'
@@ -1051,7 +1051,7 @@ test_expect_success 'outside of git repository with fallbackToNoIndex' '
10511051
echo ".gitignore:.*o*" &&
10521052
cat ../expect.full
10531053
} >../expect.with.ignored &&
1054-
git -c grep.fallbackToNoIndex grep --no-exclude o >../actual.full &&
1054+
git -c grep.fallbackToNoIndex grep --no-exclude-standard o >../actual.full &&
10551055
test_cmp ../expect.with.ignored ../actual.full
10561056
)
10571057
'

0 commit comments

Comments
 (0)