From: Jakub Narebski Date: Sat, 24 May 2008 08:28:13 GMT Subject: Re: [PATCH] git-grep: add --color to highlight matches Message-ID: In-Reply-To: <20080524043118.GA23118@laptop> Nguyễn Thái Ngọc Duy writes: > +--color:: > + Show colored matches. > + Why not borrow from GNU grep manpage? --colour[=WHEN], --color[=WHEN] Surround the matching string with the marker find in GREP_COLOR environment variable. WHEN may be 'never', 'always', or 'auto' We probably would also want it configurable (via config variables), as `color.grep' I guess. I think compatibility with grep (using GREP_COLOR) would be good idea, and easily implemented. -- Jakub Narebski Poland ShadeHawk on #git