Skip to content

Commit 094b540

Browse files
justinrdonnellygitster
authored andcommitted
git-prompt: put upstream comments together
Commit 6d158cb (bash completion: Support "divergence from upstream" messages in __git_ps1, 2010-06-17) introduced support for indicating divergence from upstream in the PS1 prompt. The comments at the top of git-prompt.sh that were introduced with that commit are several paragraphs long. Over the years, other comments have been inserted in between the paragraphs relating to divergence from upstream. This commit puts the comments relating to divergence from upstream back together. Signed-off-by: Justin Donnelly <[email protected]> Reviewed-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 51d2d67 commit 094b540

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contrib/completion/git-prompt.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
# git always compare HEAD to @{upstream}
6767
# svn always compare HEAD to your SVN upstream
6868
#
69+
# By default, __git_ps1 will compare HEAD to your SVN upstream if it can
70+
# find one, or @{upstream} otherwise. Once you have set
71+
# GIT_PS1_SHOWUPSTREAM, you can override it on a per-repository basis by
72+
# setting the bash.showUpstream config variable.
73+
#
6974
# You can change the separator between the branch name and the above
7075
# state symbols by setting GIT_PS1_STATESEPARATOR. The default separator
7176
# is SP.
@@ -79,11 +84,6 @@
7984
# single '?' character by setting GIT_PS1_COMPRESSSPARSESTATE, or omitted
8085
# by setting GIT_PS1_OMITSPARSESTATE.
8186
#
82-
# By default, __git_ps1 will compare HEAD to your SVN upstream if it can
83-
# find one, or @{upstream} otherwise. Once you have set
84-
# GIT_PS1_SHOWUPSTREAM, you can override it on a per-repository basis by
85-
# setting the bash.showUpstream config variable.
86-
#
8787
# If you would like to see more information about the identity of
8888
# commits checked out as a detached HEAD, set GIT_PS1_DESCRIBE_STYLE
8989
# to one of these values:

0 commit comments

Comments
 (0)