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

Re: How do I show only log messages for commits on a specific branch?

From
DRDavid Roden <david.roden@sysart.de>
Date
Dec 17, 2009, 09:20 UTC
Message-ID
<hgct5i$fbg$1@ger.gmane.org>
In-Reply-To
<20091216101647.GB27373@bc-bd.org>
bd@bc-bd.org wrote:
Show 20 quoted lines
> imagine this:
> 
> --A--*--B (new)
> /
> *--X--*--Y (master)
> 
> Now I'd like to list only log messages for A..B (X..B would be okay too).
> 
> I know of
> 
> git log master..new
> 
> however then I need to remember that I branched new of master, and to be
> honest, sometimes I forget.
> 
> So how do I:
> 
> git please-tell-me-the-branch-I-started-this-branch-from new
> 
> Thanks in advance,
I have had wonderful results using
    git log new --not master
or
    git log new ^master

This is using git 1.6.4.4 and this way of specifying commits is not mentioned in the man page—it seems to work, though.

	David
Previous: Stefan VölkelNext: Pat Notz
Message 9 of 10 in “How do I show only log messages for commits on a specific branch?”
  1. bd@bc-bd.orgDec 16, 2009
  2. Elijah NewrenDec 16, 2009
  3. Miklos VajnaDec 16, 2009
  4. Santi BéjarDec 16, 2009
  5. Elijah NewrenDec 17, 2009
  6. Elijah NewrenDec 16, 2009
  7. Miklos VajnaDec 17, 2009
  8. Stefan VölkelDec 17, 2009
  9. David RodenDec 17, 2009
  10. Pat NotzDec 17, 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.