path: root/contrib/completion/
diff options
authorJoe Cridge <>2015-06-10 17:19:24 (GMT)
committerJunio C Hamano <>2015-06-10 21:53:14 (GMT)
commitab7fade9198e0ab3cc5c8705f0383768a3c954db (patch)
tree819101f84b0391043b9568330e6185ae93bdb3a7 /contrib/completion/
parent15a54fb8095502217fce7c7c6dd14e9066b62ebe (diff)
git-ab7fade9198e0ab3cc5c8705f0383768a3c954db.tar.bz2 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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'contrib/completion/')
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/completion/ b/contrib/completion/
index fb9296b..be5467b 100644
--- a/contrib/completion/
+++ b/contrib/completion/
@@ -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