author | Junio C Hamano <junkio@cox.net> | |
Wed, 17 May 2006 09:48:13 +0000 (02:48 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 17 May 2006 09:48:13 +0000 (02:48 -0700) | ||
commit | 518920b764ee9150781e68217181b24d0712748e | |
tree | 55d06665f6d346b608c60c1229b27c9995cd35be | tree | snapshot |
parent | 63dffdf03da65ddf1a02c3215ad15ba109189d42 | commit | diff |
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>
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 | diff | blob | history | |
builtin-grep.c | diff | blob | history |