Re: Adding color to git diff output.
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Apr 12, 2006, 07:38 UTC
- Message-ID
- <81b0412b0604120038q2e4aef8cn55ba4cfa68e18b34@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0604111801270.14565@g5.osdl.org>
On 4/12/06, Linus Torvalds <torvalds@osdl.org> wrote:
> +if [ "$GIT_DIFF_PAGER" ] && tty -s <&1; then
Maybe use "-t" here? I have at least one system which has no tty installed. Like this:
if [ -n "$GIT_DIFF_PAGER" -a -t ]; then ...