From: Junio C Hamano Date: Sun, 11 Nov 2007 10:34:31 GMT Subject: Re: Subject: [PATCH 2/3] Let git-add--interactive read colors from .gitconfig Message-ID: <7vabplf4ug.fsf@gitster.siamese.dyndns.org> In-Reply-To: <7vve89f6qy.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > Makes me wonder if you are better off with two new helper > functions defined in Git.pm, as in: > > $prompt_color = $repo->config_color("interactive.prompt") || "bold blue") > $normal_color = Git::color_to_ansi_code("normal"); Sorry, but please disregard. "bold blue" part was also parameter to the string-to-ansi-color-escape function, so the above does not make much sense.