diff options
author | 2013-06-26 00:05:14 -0300 | |
---|---|---|
committer | 2013-06-26 13:02:57 -0700 | |
commit | 7fe9031920be5c98a7e58eea6be34442390392ec (patch) | |
tree | fdb688b5732627d9a904220351e1a498ee325040 /t/t9124-git-svn-dcommit-auto-props.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/t9124-git-svn-dcommit-auto-props.sh')
0 files changed, 0 insertions, 0 deletions