]> git.ipfire.org Git - thirdparty/git.git/commit - grep.c
grep: support -h (no header) with --count
authorRené Scharfe <l.s.r@web.de>
Tue, 11 Mar 2014 21:15:49 +0000 (22:15 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Mar 2014 22:05:28 +0000 (15:05 -0700)
commitf76d947ae13ca66790a305a58764ae50ea7442d9
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