diff options
author | Adam Lindberg <hello@alind.io> | 2014-04-16 10:34:45 +0200 |
---|---|---|
committer | ncanceill <nicolas.canceill@ens-cachan.org> | 2015-06-10 14:36:55 +0200 |
commit | 2d40cc0bb315a92368e35c15c92f955bd901c7c3 (patch) | |
tree | d3223d0c72ce169d8a4b4dc96139439e83b627d4 /themes/sporty_256.zsh-theme | |
parent | f21a672fed1e1455c8341c972f3ba5a408726053 (diff) | |
download | zsh-2d40cc0bb315a92368e35c15c92f955bd901c7c3.tar.gz zsh-2d40cc0bb315a92368e35c15c92f955bd901c7c3.tar.bz2 zsh-2d40cc0bb315a92368e35c15c92f955bd901c7c3.zip |
Add git_prompt_behind and git_prompt_exists
This adds two new theme functions for git:
* `git_prompt_behind` works in a identical fashion to `git_prompt_ahead`
and will output a format variable (`ZSH_THEME_GIT_PROMPT_BEHIND`) if
the branch is behind.
* `git_prompt_remote` will output one format variable if the branch
exists on remote (`ZSH_THEME_GIT_PROMPT_REMOTE_EXISTS`), and another
if the branch is unpublished (`ZSH_THEME_GIT_PROMPT_REMOTE_MISSING`).
The old `git_prompt_ahead` has been changed. Using git log is subject
to formatting in .gitconfig, which can be overridden and will break
this function. Relying on rev-list is much more stable.
Diffstat (limited to 'themes/sporty_256.zsh-theme')
0 files changed, 0 insertions, 0 deletions