diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-01-14 10:10:02 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-14 10:10:02 +0300 |
commit | 6a15416a89b8e0095de6dd0d733b4f4545c27d16 (patch) | |
tree | acd7f6112700e2389eae9c2777e5656d0db8ea80 /t | |
parent | d451b503a6290fffe9ad5f3837499a97effb1f6d (diff) | |
parent | 57d43466fbb4ffb4106b97593a96d714137dde2a (diff) |
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')
-rwxr-xr-x | t/t7002-grep.sh | 7 |
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 |