summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Simon Oosthoek <s.oosthoek@xs4all.nl>2012-10-10 21:31:58 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-10-11 11:26:14 -0700
commit1bfc51ac814125de03ddf1900245e42d6ce0d250 (patch)
tree8588906ee06e689efffa9bb07d4eac131c8a918c /Makefile
parentMerge branch 'maint' (diff)
downloadtgif-1bfc51ac814125de03ddf1900245e42d6ce0d250.tar.xz
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>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions