Skip to content

Commit f993e2e

Browse files
committed
Merge branch 'maint'
* maint: git-prompt: Document GIT_PS1_DESCRIBE_STYLE
2 parents 7e0651a + 50b03b0 commit f993e2e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

contrib/completion/git-prompt.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,19 @@
5555
# GIT_PS1_SHOWUPSTREAM, you can override it on a per-repository basis by
5656
# setting the bash.showUpstream config variable.
5757
#
58+
# If you would like to see more information about the identity of
59+
# commits checked out as a detached HEAD, set GIT_PS1_DESCRIBE_STYLE
60+
# to one of these values:
61+
#
62+
# contains relative to newer annotated tag (v1.6.3.2~35)
63+
# branch relative to newer tag or branch (master~4)
64+
# describe relative to older annotated tag (v1.6.3.1-13-gdd42c2f)
65+
# default exactly matching tag
66+
#
5867
# If you would like a colored hint about the current dirty state, set
5968
# GIT_PS1_SHOWCOLORHINTS to a nonempty value. The colors are based on
6069
# the colored output of "git status -sb".
61-
#
70+
6271
# __gitdir accepts 0 or 1 arguments (i.e., location)
6372
# returns location of .git repo
6473
__gitdir ()

0 commit comments

Comments
 (0)