From: Paul Gardiner Date: Sat, 22 Mar 2008 12:12:16 GMT Subject: Re: How to find where a branch was taken from. Message-ID: <47E4F7A0.6060702@glidos.net> In-Reply-To: <32541b130803211039h1f5b8da5k8fb353d46e57b05e@mail.gmail.com> Avery Pennarun wrote: > Alternatively, we could avoid tracking anything extra at all. If git > could suggest a branch or tag that mine is "currently closest to", > ie., the one that has as many of the commits from my branch as > possible (even if it has additional commits that I don't have), then > that might be the branch I'm interested in. Yes, that's exactly what I need too. I need to produce it programatically. I notice gitk displays, for each commit, the branches that include it. If I knew a command for deriving that, I could iterate through HEAD, HEAD~1, HEAD~2... until I see a remote branch. P.