summaryrefslogtreecommitdiff
path: root/plugins/git-hubflow
diff options
context:
space:
mode:
authorCaio Romão <caioromao@gmail.com>2012-07-29 20:18:26 +0200
committerCaio Romão <caioromao@gmail.com>2012-07-29 20:18:26 +0200
commita3c2a2f6e8ff9db508070a905de056346386ef4f (patch)
treec4b02bcd886f6d01c13b20c10057af51c3b729f8 /plugins/git-hubflow
parentd05b2010ffd4cd33ff9402c402051b1caf985d97 (diff)
downloadzsh-a3c2a2f6e8ff9db508070a905de056346386ef4f.tar.gz
zsh-a3c2a2f6e8ff9db508070a905de056346386ef4f.tar.bz2
zsh-a3c2a2f6e8ff9db508070a905de056346386ef4f.zip
Add branch status support to git_prompt_status
This patch makes git_prompt_status support three new status variables: - ZSH_THEME_GIT_PROMPT_AHEAD - ZSH_THEME_GIT_PROMPT_BEHIND - ZSH_THEME_GIT_PROMPT_DIVERGED With these extra variables it's easy to see (1) if you have commits in your local branch that weren't pushed to the remote (AHEAD), (2) if there are commits in the remote that you haven't merged/rebased yet (BEHIND) or (3) if you have local unpushed commits AND the remote has some commits you haven't merged yet (DIVERGED). Refer to the first line displayed on `git status -b --porcelain`. An example setup in a .zsh-theme file would be: ZSH_THEME_GIT_PROMPT_AHEAD="↑" ZSH_THEME_GIT_PROMPT_BEHIND="↓" ZSH_THEME_GIT_PROMPT_DIVERGED="↕"
Diffstat (limited to 'plugins/git-hubflow')
0 files changed, 0 insertions, 0 deletions