projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e90ba8
)
env: only use color diffs on terminals
author
Philip Prindeville
<philipp@redfish-solutions.com>
Tue, 10 Apr 2018 22:57:06 +0000
(16:57 -0600)
committer
John Crispin
<john@phrozen.org>
Sat, 5 May 2018 07:44:43 +0000
(09:44 +0200)
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 <philipp@redfish-solutions.com>
scripts/env
patch
|
blob
|
history
diff --git
a/scripts/env
b/scripts/env
index 63e26eb154da83b638b8c2dc766edbc8a6f98f3f..84166ae5fe45ddeefb82f060fb8d3d1b898e81c9 100755
(executable)
--- a/
scripts/env
+++ b/
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
}