From: Duy Nguyen Date: Wed, 27 Jul 2016 18:03:15 GMT Subject: Re: Find a topic branch containing a commit Message-ID: In-Reply-To: On Wed, Jul 27, 2016 at 7:50 PM, Stefan Beller wrote: > On Wed, Jul 27, 2016 at 10:42 AM, Duy Nguyen wrote: >> Before I start doing anything silly because I don't know it can >> already be done without waving my C wand like a mad man... >> >> I often do this: find a commit of interest, the commit itself is not >> enough so I need a full patch series to figure out what's going, so I >> fire up "git log --graph --oneline" and manually search that commit >> and trace back to the merge point, then I can "git log --patch". Is >> there an automatic way to accomplish that? Something like "git branch >> --contains" (or "git merge --contains")? > > https://github.com/mhagger/git-when-merged ? Beautiful. If it had an option to show a topic (i.e. git-log from merge base to merge point) I would be ecstatic. Michael, any plans on bringing this in C Git? For many topic-based projects this would be very helpful addition, and I think it's not so hard to do it in C either. -- Duy