{"thread":{"id":"10563","subject":"[PATCH] Do no colorify test output if stdout is not a terminal","startedAt":"2007-11-01T14:01:58Z","lastAt":"2007-11-01T22:47:48Z","messageCount":2,"participants":["Alex Riesen","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"57825","messageId":"20071101140158.GA14475@steel.home","threadId":"10563","inReplyTo":null,"subject":"[PATCH] Do no colorify test output if stdout is not a terminal","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-11-01T14:01:58Z","receivedAt":"2007-11-01T14:01:58Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"like when the output is redirected into a file in a cron job.\n---\n t/test-lib.sh |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/t/test-lib.sh b/t/test-lib.sh\nindex 714de6e..603a8cd 100644\n--- a/t/test-lib.sh\n+++ b/t/test-lib.sh\n@@ -60,6 +60,7 @@ esac\n # . ./test-lib.sh\n \n [ \"x$TERM\" != \"xdumb\" ] &&\n+\t[ -t 1 ] &&\n \ttput bold >/dev/null 2>&1 &&\n \ttput setaf 1 >/dev/null 2>&1 &&\n \ttput sgr0 >/dev/null 2>&1 &&\n-- \n1.5.3.4.549.g2789\n"},{"id":"57892","messageId":"7vd4ut8twr.fsf@gitster.siamese.dyndns.org","threadId":"10563","inReplyTo":"20071101140158.GA14475@steel.home","subject":"Re: [PATCH] Do no colorify test output if stdout is not a terminal","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-11-01T22:47:48Z","receivedAt":"2007-11-01T22:47:48Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Good catch.  Thanks.\n"}]}