Re: [PATCH] git-grep: add --color to highlight matches
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- May 26, 2008, 10:57 UTC
- Message-ID
- <fcaeb9bf0805260357t2bce7753vab5331bb21d98e4b@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0805261113050.30431@racer>
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.
-- Duy