diff options
author | Joe Cridge <joe.cridge@me.com> | 2015-06-10 18:19:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-10 14:53:14 -0700 |
commit | ab7fade9198e0ab3cc5c8705f0383768a3c954db (patch) | |
tree | 819101f84b0391043b9568330e6185ae93bdb3a7 | |
parent | prompt: introduce GIT_PS1_STATESEPARATOR (diff) | |
download | tgif-ab7fade9198e0ab3cc5c8705f0383768a3c954db.tar.xz |
git-prompt.sh: document GIT_PS1_STATESEPARATOR
The environment variable GIT_PS1_STATESEPARATOR can be used to set the
separator between the branch name and the state symbols in the prompt.
At present the variable is not mentioned in the inline documentation which
makes it difficult for the casual user to identify.
Signed-off-by: Joe Cridge <joe.cridge@me.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | contrib/completion/git-prompt.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh index fb9296ba3d..be5467bb45 100644 --- a/contrib/completion/git-prompt.sh +++ b/contrib/completion/git-prompt.sh @@ -61,6 +61,10 @@ # git always compare HEAD to @{upstream} # svn always compare HEAD to your SVN upstream # +# You can change the separator between the branch name and the above +# state symbols by setting GIT_PS1_STATESEPARATOR. The default separator +# is SP. +# # By default, __git_ps1 will compare HEAD to your SVN upstream if it can # find one, or @{upstream} otherwise. Once you have set # GIT_PS1_SHOWUPSTREAM, you can override it on a per-repository basis by |