diff options
author | Eduardo R. D'Avila <erdavila@gmail.com> | 2013-06-26 00:05:14 -0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-26 13:02:57 -0700 |
commit | 7fe9031920be5c98a7e58eea6be34442390392ec (patch) | |
tree | fdb688b5732627d9a904220351e1a498ee325040 /t/t4120-apply-popt.sh | |
parent | t9903: add tests for git-prompt pcmode (diff) | |
download | tgif-7fe9031920be5c98a7e58eea6be34442390392ec.tar.xz |
git-prompt.sh: refactor colored prompt code
__git_ps1_colorize_gitstring() sets color codes and
builds the prompt gitstring. It has duplicated code
to handle color codes for bash and zsh shells.
__git_ps1() also has duplicated logic to build the
prompt gitstring.
Remove duplication of logic to build gitstring in
__git_ps1_colorize_gitstring() and __git_ps1().
Leave in __git_ps1_colorize_gitstring() only logic
to set color codes.
Signed-off-by: Eduardo R. D'Avila <erdavila@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4120-apply-popt.sh')
0 files changed, 0 insertions, 0 deletions