Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: --count over binary
[gitweb.git]
/
t
/
t7008-grep-binary.sh
diff --git
a/t/t7008-grep-binary.sh
b/t/t7008-grep-binary.sh
index 2320e74b69af81a5ead33b90bc3cc40d1995e9ce..91970eacd66723557a8bfa862ef737e5d75f6a67 100755
(executable)
--- a/
t/t7008-grep-binary.sh
+++ b/
t/t7008-grep-binary.sh
@@
-27,6
+27,12
@@
test_expect_success 'git grep -I ina a' '
test_cmp expect actual
'
+test_expect_success 'git grep -c ina a' '
+ echo a:1 >expect &&
+ git grep -c ina a >actual &&
+ test_cmp expect actual
+'
+
test_expect_success 'git grep -L bar a' '
echo a >expect &&
git grep -L bar a >actual &&