Re: how to list commits on branch since last merge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 08, 2011 at 12:39:10PM -0500, Jay Soffian wrote:

> >> Going back to my original picture, I mean commit m:
> >>
> >> Â o---o---x---o---... Â Âfoo
> >> Â Â\ Â Â Â \
> >> Â Â o---o---m---o---... Âbar
> >>
> >> merge-base foo bar gives me x; to get m I then need to grep the output
> >> of rev-list --parents for x.
> >
> > Isn't the merge the first commit in bar that is not in foo? IOW:
> 
> No, because bar is never merged to foo. Let me relabel the picture:

Oh, of course. Sorry for the misdirection. Too little sleep. :)

> I guess this is not at all a common thing, since it seems to be
> confounding the list. :-)

Yeah, I think in many cases when "foo" and "bar" are merged, they both
end up getting the merge commit, and "foo..bar" and "foo...bar" becomes
a lot more useful.

Yours is more of a long-running maintenance branch scenario. Which is
not all that uncommon, of course, but I can't remember a time when I
wanted to ask for what you're looking for.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]