From: Junio C Hamano Date: Mon, 20 Feb 2012 22:05:53 GMT Subject: Re: rfe: git-config: lack of color reset option Message-ID: <7vwr7hjh32.fsf@alter.siamese.dyndns.org> In-Reply-To: <20120220212006.GB6335@sigill.intra.peff.net> Jeff King writes: > 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.