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

Re: linux-x86-tip: pilot error?

From
IMIngo Molnar <mingo@elte.hu>
Date
Jun 23, 2008, 16:05 UTC
Message-ID
<20080623160532.GA10540@elte.hu>
In-Reply-To
<20080623151257.GC20902@sigill.intra.peff.net>
* Jeff King <peff@peff.net> wrote:
Show 8 quoted lines
> On Mon, Jun 23, 2008 at 09:14:41AM +0200, Ingo Molnar wrote:
> 
> > Is there a Git way of finding the common ancestor of a topic branch, 
> > when compared to upstream?
> 
> Try:
> 
>   git merge-base topic upstream
small (and stupid) feature suggestion for git-merge-base.

i was working on a topic branch when i wanted to figure out its base to linus/master, and i typed:

  ~/tip> git-merge-base linus
  usage: git-merge-base [--all] <commit-id> <commit-id>

it might make sense to implicitly use the current 'HEAD' as a second, default parameter to git-merge-base. (unless i'm missing some particular detail about why that would be a bad idea)

	Ingo
Previous: Ingo Molnar
Message 15 of 15 in “linux-x86-tip: pilot error?”
  1. Paul E. McKenneyJun 22, 2008
  2. Mikael MagnussonJun 22, 2008
  3. Paul E. McKenneyJun 22, 2008
  4. Mikael MagnussonJun 22, 2008
  5. Björn SteinbrinkJun 22, 2008
  6. Paul E. McKenneyJun 22, 2008
  7. Ingo MolnarJun 23, 2008
  8. Paul E. McKenneyJun 23, 2008
  9. Ingo MolnarJun 23, 2008
  10. Paul E. McKenneyJun 23, 2008
  11. Ingo MolnarJun 23, 2008
  12. Daniel BarkalowJun 23, 2008
  13. Jeff KingJun 23, 2008
  14. Ingo MolnarJun 23, 2008
  15. Ingo MolnarJun 23, 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.