git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: `Git Status`-like output for two local branches

From
Ddemerphq <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/"
Previous: Jeff KingNext: Jeff King
Message 5 of 6 in “`Git Status`-like output for two local branches”
  1. Tim VisherAug 31, 2009
  2. Jeff KingSep 2, 2009
  3. Sverre RabbelierSep 2, 2009
  4. Jeff KingSep 5, 2009
  5. demerphqSep 5, 2009
  6. Jeff KingSep 9, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.