Avoid diff colorization when piping
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 12 Mar 2021 11:40:34 +0000 (06:40 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 12 Mar 2021 11:40:34 +0000 (06:40 -0500)
Makefile

index c2d4b8c..788b7d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -159,7 +159,7 @@ $(foreach d,$(DEPS),$(eval $(call GEN_DEP_RULE,$(d))))
 diff:
        find home -type f -print0 \
        | $(SED) -z 's/^home\///g' \
-       | xargs -0 -I% sh -c 'echo %; $(DIFF) --color=always ~/% home/%'
+       | xargs -0 -I% sh -c 'echo %; $(DIFF) --color=auto ~/% home/%'
 
 pull:
        find home -type f -print0 \
This page took 0.019915 seconds and 4 git commands to generate.