Skip to content

Commit ab7fade

Browse files
ecridgegitster
authored andcommitted
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>
1 parent 15a54fb commit ab7fade

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/completion/git-prompt.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
# git always compare HEAD to @{upstream}
6262
# svn always compare HEAD to your SVN upstream
6363
#
64+
# You can change the separator between the branch name and the above
65+
# state symbols by setting GIT_PS1_STATESEPARATOR. The default separator
66+
# is SP.
67+
#
6468
# By default, __git_ps1 will compare HEAD to your SVN upstream if it can
6569
# find one, or @{upstream} otherwise. Once you have set
6670
# GIT_PS1_SHOWUPSTREAM, you can override it on a per-repository basis by

0 commit comments

Comments
 (0)