1
0
mirror of https://github.com/git/git.git synced 2024-10-23 02:49:36 +02:00
git/contrib/completion
Simon Oosthoek 1bfc51ac81 Allow __git_ps1 to be used in PROMPT_COMMAND
Changes __git_ps1 to allow its use as PROMPT_COMMAND in bash
in addition to setting PS1 with __git_ps1 in a command substitution.
PROMPT_COMMAND has advantages for using color without running
into prompt-wrapping issues. Only by assigning \[ and \] to PS1
directly can bash know that these and the enclosed zero-width codes in
between don't count in the length of the prompt.

Signed-off-by: Simon Oosthoek <s.oosthoek@xs4all.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-10-11 11:26:14 -07:00
..
git-completion.bash Merge branch 'maint' 2012-09-25 10:25:52 -07:00
git-prompt.sh Allow __git_ps1 to be used in PROMPT_COMMAND 2012-10-11 11:26:14 -07:00