From: Matthias Lederhofer Date: Fri, 06 Jul 2007 16:37:59 GMT Subject: Re: [PATCH] git-diff: don't use colors when stdout is not a tty. Message-ID: <20070706163759.GA26670@moooo.ath.cx> In-Reply-To: <468E612E.2070903@objectxp.com> Michel Marti wrote: > Currently, with diff-coloring enabled, git-diff outputs color escape > sequences even if stdout is redirected (not a tty). This is rather annoying > when trying to further process the output. This patch teaches the diff command > to only do its coloring stuff when a pager is in use or stdout is a tty. Set color.diff to auto instead of true.