grep: prefer builtin over external one when coloring results
commit6e89ec0f1e716c11bf7fa214b4c7b975ea77c736
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 16 Mar 2009 02:20:04 +0000 (16 13:20 +1100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Mar 2009 00:03:33 +0000 (17 17:03 -0700)
tree5620001d0f21798e3e2159be19099bdfe02b591c
parent747a322bcc4df5f9a371890ffe728741456704c7
grep: prefer builtin over external one when coloring results

As far as I know, not all grep programs support coloring, so we should
rely on builtin grep. If you want external grep, set
color.grep.external to empty string.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-grep.c