Re: `Git Status`-like output for two local branches
From: demerphq <hidden>
Date: 2016-06-15 22:47:21
2009/9/5 Jeff King [off-list ref]:
On Wed, Sep 02, 2009 at 10:18:54AM +0200, Sverre Rabbelier wrote:quoted
On Wed, Sep 2, 2009 at 09:57, Jeff King[off-list ref] wrote:quoted
2. Count the commits on each side that are not in the other.[...]quoted
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/"