From e2955b4901ff14a9e797e542669ce03119fd5bce Mon Sep 17 00:00:00 2001 From: Ashley Dev Date: Thu, 2 Jun 2011 17:07:14 -0700 Subject: [PATCH] add some more comments --- plugins/git/git-prompt.plugin.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/git/git-prompt.plugin.zsh b/plugins/git/git-prompt.plugin.zsh index da166d6a..2871180d 100644 --- a/plugins/git/git-prompt.plugin.zsh +++ b/plugins/git/git-prompt.plugin.zsh @@ -212,6 +212,8 @@ _git_prompt__upstream () GIT_PROMPT_UPSTREAM_STATE=$p } +# sets GIT_PROMPT_REBASE_INFO +# with info about a rebase/merge/etc if it's in progress. _git_prompt__rebase_info () { GIT_PROMPT_REBASE_INFO='' @@ -256,6 +258,8 @@ _git_prompt__rebase_info () GIT_PROMPT_REBASE_INFO=$r } +# sets GIT_PROMPT_BRANCH +# with the branch name _git_prompt__branch () { GIT_PROMPT_BRANCH='' @@ -311,6 +315,8 @@ _git_prompt__branch () } +# sets GIT_PROMPT_STASH_STATE_DIRTY +# if the git stash state is dirty _git_prompt__stash () { GIT_PROMPT_STASH_STATE_DIRTY='' @@ -395,6 +401,7 @@ TRAPINT () return $(( 128 + $1 )) } +# sets a bunch of variables, see below: _git_prompt__dirty_state () { GIT_PROMPT_DIRTY_STATE_FRESH_REPO=''