]> rtime.felk.cvut.cz Git - git.git/blobdiff - t/t7008-grep-binary.sh
grep: --count over binary
[git.git] / t / t7008-grep-binary.sh
index 2320e74b69af81a5ead33b90bc3cc40d1995e9ce..91970eacd66723557a8bfa862ef737e5d75f6a67 100755 (executable)
@@ -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 &&