Re: FW: Git log --graph doesn't output color when redirected

2012-12-15 Thread Junio C Hamano
Jeff King p...@peff.net writes: On Sat, Dec 15, 2012 at 10:23:10AM +0700, Nguyen Thai Ngoc Duy wrote: On Thu, Dec 13, 2012 at 8:13 PM, Jeff King p...@peff.net wrote: If you are using --format=%C(red) or similar placeholders, they are the odd duck by not respecting the auto-color mode.

Re: FW: Git log --graph doesn't output color when redirected

2012-12-14 Thread Nguyen Thai Ngoc Duy
On Thu, Dec 13, 2012 at 8:13 PM, Jeff King p...@peff.net wrote: If you are using --format=%C(red) or similar placeholders, they are the odd duck by not respecting the auto-color mode. But they should, shouldn't they? Just asking. I may do it to when I revive

Re: FW: Git log --graph doesn't output color when redirected

2012-12-13 Thread Jeff King
On Wed, Dec 12, 2012 at 05:35:17PM +, Srb, Michal wrote: Unlike --pretty-format, --graph doesn’t output colors when the git log output is redirected. I do not think it has anything to do with --graph in particular, but rather that when colorization is set to the auto mode, it is enabled

RE: FW: Git log --graph doesn't output color when redirected

2012-12-13 Thread Srb, Michal
From: Jeff King [p...@peff.net] Sent: Thursday, December 13, 2012 1:13 PM Is there a setting somewhere in config to change this? Yes. If you use --color on the command line, that means unconditionally use color. If you set color.ui (or any other color config option) to always, then you will