git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-prompt.sh: Document GIT_PS1_STATESEPARATOR
@ 2015-06-10 17:19 Joe Cridge
  2015-06-16 13:32 ` SZEDER Gábor
  0 siblings, 1 reply; 3+ messages in thread
From: Joe Cridge @ 2015-06-10 17:19 UTC (permalink / raw)
  To: git; +Cc: gitster, rhansen, felipe.contreras, szeder, artagnon, Joe Cridge

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>
---
 contrib/completion/git-prompt.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh
index f18aedc..366f0bc 100644
--- a/contrib/completion/git-prompt.sh
+++ b/contrib/completion/git-prompt.sh
@@ -66,6 +66,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
-- 
2.4.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-16 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-10 17:19 [PATCH] git-prompt.sh: Document GIT_PS1_STATESEPARATOR Joe Cridge
2015-06-16 13:32 ` SZEDER Gábor
2015-06-16 14:27   ` Joe Cridge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).