parse-options: multi-word argh should use dash to separate words
[gitweb.git] / t / t7810-grep.sh
index 46aaebc475e589babb49780889e65858ca5d2cf0..63b303924307ad3a1d0658ec3b69a3ebf9e5670e 100755 (executable)
@@ -328,6 +328,18 @@ do
                        grep "a+b*c" $H ab >actual &&
                test_cmp expected actual
        '
+
+       test_expect_success "grep --count $L" '
+               echo ${HC}ab:3 >expected &&
+               git grep --count -e b $H -- ab >actual &&
+               test_cmp expected actual
+       '
+
+       test_expect_success "grep --count -h $L" '
+               echo 3 >expected &&
+               git grep --count -h -e b $H -- ab >actual &&
+               test_cmp expected actual
+       '
 done
 
 cat >expected <<EOF