summaryrefslogtreecommitdiff
path: root/t/t7002-grep.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-01-13 23:10:02 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-01-13 23:10:02 -0800
commit6a15416a89b8e0095de6dd0d733b4f4545c27d16 (patch)
treeacd7f6112700e2389eae9c2777e5656d0db8ea80 /t/t7002-grep.sh
parentMerge branch 'as/maint-shortlog-cleanup' (diff)
parentgrep: grep cache entries if they are "assume unchanged" (diff)
downloadtgif-6a15416a89b8e0095de6dd0d733b4f4545c27d16.tar.xz
Merge branch 'nd/grep-assume-unchanged'
* nd/grep-assume-unchanged: grep: grep cache entries if they are "assume unchanged" grep: support --no-ext-grep to test builtin grep
Diffstat (limited to 't/t7002-grep.sh')
-rwxr-xr-xt/t7002-grep.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh
index 18fe6f2d57..c4938544d4 100755
--- a/t/t7002-grep.sh
+++ b/t/t7002-grep.sh
@@ -161,7 +161,14 @@ test_expect_success 'log grep (6)' '
git log --author=-0700 --pretty=tformat:%s >actual &&
>expect &&
test_cmp expect actual
+'
+test_expect_success 'grep with CE_VALID file' '
+ git update-index --assume-unchanged t/t &&
+ rm t/t &&
+ test "$(git grep --no-ext-grep t)" = "t/t:test" &&
+ git update-index --no-assume-unchanged t/t &&
+ git checkout t/t
'
test_done