Re: rfe: git-config: lack of color reset option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 20, 2012, 22:05 UTC
- Message-ID
- <7vwr7hjh32.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120220212006.GB6335@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
> This is an artifact of the way the ANSI colorizing works. Git says "turn > on bold white and a blue background", then it outputs some content, then > it says "turn on green", and so forth. At the end we issue a "reset" to > turn everything back to normal. We should perhaps issue a reset before > outputting the decoration, as we are moving from one colorized bit to > the other, and we don't know what we are inheriting.
Yeah, I agree with the diagnosis and the proposed solution. It sounds both simple and correct thing to do.