Re: `Git Status`-like output for two local branches
- From
- demerphq <demerphq@gmail.com>
- Date
- Sep 5, 2009, 14:58 UTC
- Message-ID
- <9b18b3110909050758k597f917fn3baefa5fdb4741a0@mail.gmail.com>
- In-Reply-To
- <20090905081726.GA7109@coredump.intra.peff.net>
2009/9/5 Jeff King <peff@peff.net>:
Show 15 quoted lines
> On Wed, Sep 02, 2009 at 10:18:54AM +0200, Sverre Rabbelier wrote: > >> On Wed, Sep 2, 2009 at 09:57, Jeff King<peff@peff.net> wrote: >> > 2. Count the commits on each side that are not in the other. >> >> [...] >> >> > You can also do that by parsing the output of: >> > git rev-list --left-right $a...$b -- >> >> Perhaps it is useful to introduce a --left-right-count or such? > > I'm not opposed to that if it is something a lot of people found useful, > but I am not sure we have established that as the case (I am curious to > hear from Tim what his actual use case is).
It would be useful in for instance prompt status line. At $work we have a number of people using a prompt that includes the result of parsing git-status, but something --left-right-count would be much nicer, and if i understand it, more efficient (although maybe im wrong). In the prompt they use a number of different unicode arrows to show what has happened, with a Y type thing for diverged.
cheers, Yves
-- perl -Mre=debug -e "/just|another|perl|hacker/"