summaryrefslogtreecommitdiff
path: root/t/t5001-archive-attr.sh
diff options
context:
space:
mode:
authorLibravatar Eduardo R. D'Avila <erdavila@gmail.com>2013-06-26 00:05:14 -0300
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-26 13:02:57 -0700
commit7fe9031920be5c98a7e58eea6be34442390392ec (patch)
treefdb688b5732627d9a904220351e1a498ee325040 /t/t5001-archive-attr.sh
parentt9903: add tests for git-prompt pcmode (diff)
downloadtgif-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/t5001-archive-attr.sh')
0 files changed, 0 insertions, 0 deletions