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

Re: [PATCH 3/3] git-branch -v: show the remote tracking statistics

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Jul 2, 2008, 14:44 UTC
Message-ID
<CC9ACD5E-2E7E-42D4-AF75-C35C2AB8651E@silverinsanity.com>
In-Reply-To
<20080702083306.GA28337@diana.vm.bytemark.co.uk>
On Jul 2, 2008, at 4:33 AM, Karl Hasselström wrote:
Show 10 quoted lines
> On 2008-07-02 10:23:33 +0200, Johannes Sixt wrote:
>
>> * jc/report-tracking   41666f7 diverged 3 vs. 117
>
> Or even "ahead 3, behind 117" here. Otherwise the user has to remember
> which number is which, which kind of defeats your point. And it's just
> one more character.
>
>>  foo                  1234567 behind 22
>>  bar                  fedcba9 ahead 6

This is probably the most useful for a new user. The short version of that (config option to give it for power users and hide it from those it would confuse) should use plus and minus for ahead and behind:

  * jc/report-tracking        41666f7 [+3 -117] git-branch -v: show  
the remo...

I can't follow the code with the ten seconds I have to look at it. Is this ahead/behind current branch, tracking branch, or other?

~~ Brian
Previous: Karl HasselströmNext: Junio C Hamano
Message 16 of 28 in “[OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commits.”
  1. Ingo MolnarJul 1, 2008
  2. Bruce StephensJul 1, 2008
  3. Ingo MolnarJul 1, 2008
  4. SZEDER GáborJul 1, 2008
  5. Jakub NarebskiJul 1, 2008
  6. Junio C HamanoJul 1, 2008
  7. 0/3 Making remote tracking statistics available to other toolsJunio C Hamano, Jul 2, 2008
  8. Olivier MarinJul 3, 2008
  9. Junio C HamanoJul 3, 2008
  10. Olivier MarinJul 3, 2008
  11. 1/3 Refactor "tracking statistics" code used by "git checkout"Junio C Hamano, Jul 2, 2008
  12. 2/3 git-status: show the remote tracking statisticsJunio C Hamano, Jul 2, 2008
  13. 3/3 git-branch -v: show the remote tracking statisticsJunio C Hamano, Jul 2, 2008
  14. Johannes SixtJul 2, 2008
  15. Karl HasselströmJul 2, 2008
  16. Brian GernhardtJul 2, 2008
  17. Junio C HamanoJul 2, 2008
  18. Johannes SchindelinJul 2, 2008
  19. Jakub NarebskiJul 1, 2008
  20. Junio C HamanoJul 1, 2008
  21. Ingo MolnarJul 1, 2008
  22. Miklos VajnaJul 1, 2008
  23. Ingo MolnarJul 1, 2008
  24. Miklos VajnaJul 1, 2008
  25. Junio C HamanoJul 1, 2008
  26. Pedro MeloJul 4, 2008
  27. Mikael MagnussonJul 1, 2008
  28. Björn SteinbrinkJul 1, 2008

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.