Re: Adding color to git diff output.

From: Alex Riesen <raa.lkml@gmail.com>
Date: 2006-04-12 17:38:55
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
...
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Apr 12 17:39:40 2006

This archive was generated by hypermail 2.1.8 : 2006-04-12 17:39:54 EST