author | Andrew Sayers <andrew-git@pileofstuff.org> | |
Thu, 17 Jun 2010 21:32:02 +0000 (22:32 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 24 Jun 2010 17:02:45 +0000 (10:02 -0700) | ||
commit | 6d158cba282f22fa1548af1188f78042fed30aed | |
tree | a368447a78bbb28e341f43661188f9e70c395d9b | tree | snapshot |
parent | f69c501832ecd6880602c55565508e70c3a013d5 | commit | diff |
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>
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 | diff | blob | history |