Re: [PATCH] git-grep: add --color to highlight matches
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 26, 2008, 11:00 UTC
- Message-ID
- <alpine.DEB.1.00.0805261200330.30431@racer>
- In-Reply-To
- <fcaeb9bf0805260357t2bce7753vab5331bb21d98e4b@mail.gmail.com>
Hi,
On Mon, 26 May 2008, Nguyen Thai Ngoc Duy wrote:
Show 8 quoted lines
> On Mon, May 26, 2008 at 5:16 PM, Johannes Schindelin > <Johannes.Schindelin@gmx.de> wrote: > > Besides, it would be a kludge at best to work _twice_ to find out the > > search terms, once in the external grep, and a second time in the coloring > > code. So I think it should not be done. > > I think if it's GNU grep, just passing it --color, it will grep and > colorize search terms in one turn.
And what tells you that the called grep is GNU grep?
Ciao, Dscho