Re: [PATCH] bash completion: Support "unpushed commits" warnings in __git_ps1
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Jun 6, 2010, 20:12 UTC
- Message-ID
- <201006062212.56657.trast@student.ethz.ch>
- In-Reply-To
- <4C0AE640.3040503@pileofstuff.org>
Andrew Sayers wrote:
> People working in small teams sometimes forget to push their changes, causing > general confusion. A gentle reminder in the command prompt should help.
[...]
> +# there're unpushed commits, then a '!' will be shown next to
BTW, here's another idea: how about using '>' and '<' to signal being ahead and behind upstream, resp. (and both if they diverged)?
(I think the hard question here is whether it's helpful enough to weigh against the confusion of having it show nothing, because the user hasn't fetched after an update on the remote...)
--
Thomas Rast
trast@{inf,student}.ethz.ch