Re: [PATCH 1/2] git-prompt.sh: strip unnecessary space in prompt string
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- May 13, 2013, 14:21 UTC
- Message-ID
- <CALkWK0=zqG6cyeZhK65nVQZunQinf=Ub=BPTJHx+ZWgAs2thag@mail.gmail.com>
- In-Reply-To
- <7vvc6noubf.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> If you restructure the code to formulate "gitstring" to call a shell > function to do so, people can override it and come up with whatever > format they want to use, no?
The user would essentially have to implement her own __git_ps1_colorize_string; a function that takes a lot of arguments and stitches them together with color. Much too painful for little gain.