[scripts] env: colorize git output
authorFlorian Fainelli <florian@openwrt.org>
Thu, 16 Feb 2012 19:24:34 +0000 (19:24 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 16 Feb 2012 19:24:34 +0000 (19:24 +0000)
SVN-Revision: 30602

scripts/env

index 80e08ec..24d4bec 100755 (executable)
@@ -96,13 +96,13 @@ env_do_reset() {
 
 env_list() {
        env_init
-       git branch | grep -vE '^. master$'
+       git branch --color | grep -vE '^. master$'
 }
 
 env_diff() {
        env_init
        env_sync_data
-       git diff --cached
+       git diff --cached --color
        env_link_config
 }