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

Re: Finding a branch point in git

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
May 31, 2012, 15:37 UTC
Message-ID
<CACPiFCLUae+gyymAXr9Bdux6Mohnp4tXuS5pgNCJ9w-gjBbrwA@mail.gmail.com>
In-Reply-To
<20120530215415.GB3237@sigill.intra.peff.net>
On Wed, May 30, 2012 at 5:54 PM, Jeff King <peff@peff.net> wrote:
Show 6 quoted lines
> >  % git log branch ^<any-other-branch>
> >
> > I could swear I saw such an option, but I've been looking for days and
> > I can't find it.
>
> I don't think there is such an option. You have to do something like:
I do
   gitk olpc-kernel-branch ^origin/master

to peruse OLPC's branch of the linux kernel without reading a bazillion commits into memory.

Anyway, this whole discussion assumes a very simplistic branching and development scenario. Some forks and merges are due to developers working offline or in per-developer repos. No automatic way to know what's an intentional branch.

cheers,
m
--
 martin.langhoff@gmail.com
 martin@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
Previous: Felipe ContrerasNext: Felipe Contreras
Message 11 of 13 in “Finding a branch point in git”
  1. Felipe ContrerasMay 27, 2012
  2. Jeff KingMay 28, 2012
  3. Felipe ContrerasMay 28, 2012
  4. Jeff KingMay 28, 2012
  5. Felipe ContrerasMay 30, 2012
  6. Jeff KingMay 30, 2012
  7. Felipe ContrerasMay 31, 2012
  8. Felipe ContrerasMay 31, 2012
  9. PJ WeisbergMay 31, 2012
  10. Felipe ContrerasJun 1, 2012
  11. Martin LanghoffMay 31, 2012
  12. Felipe ContrerasMay 30, 2012
  13. Jeff KingMay 30, 2012

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.