@matheusbsbs / matheus-bagliano / commits / b31f688040
Fork 0

t7810: overlapping pathspecs and depth limit

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Dec 15, 2010 at 22:02 UTC b31f688040d07ed8a6fd887e2960db005c20d832
1 file changed +18
t/t7810-grep.sh
+18
@@ -182,6 +182,24 @@ do
182 test_cmp expected actual
183 '
184
185 + test_expect_success "grep --max-depth 0 -- . t $L" '
186 + {
187 + echo ${HC}t/v:1:vvv
188 + echo ${HC}v:1:vvv
189 + } >expected &&
190 + git grep --max-depth 0 -n -e vvv $H -- . t >actual &&
191 + test_cmp expected actual
192 + '
193 +
194 + test_expect_success "grep --max-depth 0 -- t . $L" '
195 + {
196 + echo ${HC}t/v:1:vvv
197 + echo ${HC}v:1:vvv
198 + } >expected &&
199 + git grep --max-depth 0 -n -e vvv $H -- t . >actual &&
200 + test_cmp expected actual
201 + '
202 +
203 done
204
205 cat >expected <<EOF