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

Re: How do I quickly check what heads a particular commit is in?

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Apr 24, 2006, 04:50 UTC
Message-ID
<46a038f90604232150y7c99ceb2sf8f6bf05d701b3d7@mail.gmail.com>
In-Reply-To
<7v4q0jd1sj.fsf@assigned-by-dhcp.cox.net>
On 4/24/06, Junio C Hamano <junkio@cox.net> wrote:
Show 5 quoted lines
> git merge-base $broken_commit "master"
>
> would show $broken_commit if "master" is a fast-forward of
> $broken_commit (i.e. "master" is a descendant).  I think that is
> what you are calling "$broken_commit is in master".

of course! Thanks! I'm in the middle of a somewhat nasty merge, and my fingers got all tangled working up and down the history finding what heads have this commit. I can now do a loop with bash calling all the heads against it. Great!

 (hmmm. just had to decide to go back to basics and perform some
reverts before retrying the merge.)
m
Previous: Junio C HamanoNext: Jeff King
Message 3 of 4 in “How do I quickly check what heads a particular commit is in?”
  1. Martin LanghoffApr 24, 2006
  2. Junio C HamanoApr 24, 2006
  3. Martin LanghoffApr 24, 2006
  4. Jeff KingApr 24, 2006

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.