prompt: introduce GIT_PS1_STATESEPARATOR
commit15a54fb8095502217fce7c7c6dd14e9066b62ebe
authorRamkumar Ramachandra <artagnon@gmail.com>
Fri, 17 May 2013 08:55:46 +0000 (17 14:25 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 May 2013 17:01:17 +0000 (17 10:01 -0700)
tree94a246223cb321b3ff7b33ece9300f71c962b5de
parent629b60a77d0bca1358af666605548acc4dcc5841
prompt: introduce GIT_PS1_STATESEPARATOR

A typical prompt looks like:

    artagnon|master *=:~/src/git$
                   ^
                   why do we have this space?

Nobody has branch names that end with +, *, =, < or > anyway, so it
doesn't serve the purpose of disambiguation.

Make this separator configurable via GIT_PS1_STATESEPARATOR.  This means
that you can set it to "" and get this prompt:

    artagnon|master*=:~/src/git$

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-prompt.sh