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

Re: [PATCH 08/10] user-manual: add a "counting commits" example

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
May 14, 2007, 16:03 UTC
Message-ID
<20070514160335.GA20736@fieldses.org>
In-Reply-To
<20070514155111.GE5272@planck.djpig.de>
On Mon, May 14, 2007 at 05:51:11PM +0200, Frank Lichtenheld wrote:
Show 19 quoted lines
> On Mon, May 14, 2007 at 11:21:27AM -0400, J. Bruce Fields wrote:
> > +Suppose you want to know how many commits you've made on "mybranch"
> > +since it diverged from "origin":
> > +
> > +-------------------------------------------------
> > +$ git log --pretty=oneline origin..maint | wc -l
> > +-------------------------------------------------
> 
> Shouldn't that be mybranch instead of maint?
> 
> > +Alternatively you may often see this sort of thing done with the
> > +lower-level command gitlink:git-rev-list[1], which just lists the SHA1's
> > +of all the given commits:
> > +
> > +-------------------------------------------------
> > +$ git rev-list origin..maint | wc -l
> > +-------------------------------------------------
> 
> Same here.
Yep, thanks for the sharp eyes.
--b.
Previous: Frank LichtenheldNext: J. Bruce Fields
Message 2 of 5 in “Re: [PATCH 08/10] user-manual: add a "counting commits" example”
  1. Frank LichtenheldMay 14, 2007
  2. J. Bruce FieldsMay 14, 2007
  3. user-manual: fix branch names in examplesJ. Bruce Fields, May 14, 2007
  4. Junio C HamanoMay 14, 2007
  5. J. Bruce FieldsMay 14, 2007

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.