builtin-grep: workaround for non GNU grep.
authorJunio C Hamano <junkio@cox.net>
Wed, 17 May 2006 09:48:13 +0000 (02:48 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 17 May 2006 09:48:13 +0000 (02:48 -0700)
commit518920b764ee9150781e68217181b24d0712748e
tree55d06665f6d346b608c60c1229b27c9995cd35be
parent63dffdf03da65ddf1a02c3215ad15ba109189d42
builtin-grep: workaround for non GNU grep.

Some implementations do not know what to do with -H; define
NO_H_OPTION_IN_GREP when you build git if your grep lacks -H.

Most of the time, it can be worked around by prepending
/dev/null to the argument list, but that causes -L and -c to
slightly misbehave (they both expose /dev/null is given), so
when these options are given, do not run external grep that does
not understand -H.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile
builtin-grep.c