Re: [PATCH] diff-tree: obey the color.ui configuration
- From
Todd Zullinger <tmz@pobox.com>
- Date
- Dec 29, 2017, 23:16 UTC
- Message-ID
- <20171229231631.GS3693@zaya.teonanacatl.net>
- In-Reply-To
- <20171229225121.13805-1-avarab@gmail.com>
Ævar Arnfjörð Bjarmason wrote:
> No idea how to test this, in particular trying to pipe the output of > color.ui=never v.s. color.ui=auto to a file as "auto" will disable > coloring when it detects a pipe, but this fixes the issue.
You might be able to use similar methods as those Jeff used in the series merged from jk/ui-color-always-to-auto:
https://github.com/gitster/git/tree/jk/ui-color-always-to-auto
He may also have some ideas about this issue in general. (Or they could be tramatic memories, depending on how painful it was to dig into the color code.)
--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Subtlety is the art of saying what you think and getting out of the
way before it is understood.
-- Anonymous