From: Felipe Contreras Date: Wed, 30 May 2012 16:52:15 GMT Subject: Re: Finding a branch point in git Message-ID: In-Reply-To: <20120528062026.GB11174@sigill.intra.peff.net> On Mon, May 28, 2012 at 8:20 AM, Jeff King wrote: > There are also even more complex cases. It doesn't make much sense to > ask about where branch Y split from master, since it actually came from > branch X in the above example. But let's say we branched straight from > master, merged our result to X, which got merged to master, and then we > built some more commits on Y and merged them to master. Like: > > --X--A--B--C--D----E--F (master) >     |\           /  / >     | \         /  / >      \ G--H----I  /  (branch X) >       \       /  / >        K--L--M--O  (branch Y) > > The only merge between master and X is F, but its merge base is M. We > missed the earlier merge to master because it actually happened across > two different commits. I assume you mean the merge between master and Y. -- Felipe Contreras