grep: support -h (no header) with --count
commitf76d947ae13ca66790a305a58764ae50ea7442d9
authorRené Scharfe <l.s.r@web.de>
Tue, 11 Mar 2014 21:15:49 +0000 (11 22:15 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Mar 2014 22:05:28 +0000 (11 15:05 -0700)
tree05dacbd22bc11c585b0b6dbe058af4283c3fdf05
parent9afad7a1e6363ed249a5cfcc95a35900ae4970cb
grep: support -h (no header) with --count

Suppress printing the header (filename) with -h even if in -c/--count
mode.  GNU grep and OpenBSD's grep do the same.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c
t/t7810-grep.sh