bash completion: Support "divergence from upstream" messages in __git_ps1
commit6d158cba282f22fa1548af1188f78042fed30aed
authorAndrew Sayers <andrew-git@pileofstuff.org>
Thu, 17 Jun 2010 21:32:02 +0000 (17 22:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Jun 2010 17:02:45 +0000 (24 10:02 -0700)
treea368447a78bbb28e341f43661188f9e70c395d9b
parentf69c501832ecd6880602c55565508e70c3a013d5
bash completion: Support "divergence from upstream" messages in __git_ps1

Add a notification in the command prompt specifying whether (and optionally how
far) your branch has diverged from its upstream.  This is especially helpful in
small teams that very frequently (forget to) push to each other.

Support git-svn upstream detection as a special case, as migrators from
centralised version control systems are especially likely to forget to push.

Support for other types of upstream than SVN should be easy to add if anyone is
so inclined.

Signed-off-by: Andrew Sayers <andrew-git@pileofstuff.org>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash