Re: How to find where a branch was taken from.
- From
- Paul Gardiner <osronline@glidos.net>
- Date
- Mar 22, 2008, 12:12 UTC
- Message-ID
- <47E4F7A0.6060702@glidos.net>
- In-Reply-To
- <32541b130803211039h1f5b8da5k8fb353d46e57b05e@mail.gmail.com>
Avery Pennarun wrote:
Show 5 quoted lines
> 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.