aboutsummaryrefslogtreecommitdiff
path: root/color.h
diff options
context:
space:
mode:
authorEduardo R. D'Avila <erdavila@gmail.com>2013-06-26 00:05:14 -0300
committerJunio C Hamano <gitster@pobox.com>2013-06-26 13:02:57 -0700
commit7fe9031920be5c98a7e58eea6be34442390392ec (patch)
treefdb688b5732627d9a904220351e1a498ee325040 /color.h
parent1572e18e60e0702561d1d59d140615ab7ff54295 (diff)
downloadgit-7fe9031920be5c98a7e58eea6be34442390392ec.tar.gz
git-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 'color.h')
0 files changed, 0 insertions, 0 deletions