浏览代码

env: only use color diffs on terminals

When sending script/env diff's output to a file or pipeline, you
don't want escape characters for ANSI color sequences fouling the
byte stream.

Signed-off-by: Philip Prindeville <[email protected]>
Philip Prindeville 7 年之前
父节点
当前提交
e495a05069
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/env

+ 1 - 1
scripts/env

@@ -104,7 +104,7 @@ env_list() {
 env_diff() {
 	env_init
 	env_sync_data
-	git diff --cached --color
+	git diff --cached --color=auto
 	env_link_config
 }