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.