git-graph icon indicating copy to clipboard operation
git-graph copied to clipboard

Make shape of output independent of starting point

Open mlange-42 opened this issue 5 years ago • 5 comments

Problem: when walking the respository from HEAD, back-tracing of branches does notwork properly.

Solution: back-trace the entire graph, but display only what is reachable from HEAD

mlange-42 avatar Dec 28 '20 01:12 mlange-42

Hello there! I'd like a similar idea, but more expanded:

Allow a vararg listing of refspecs, and visualize all n-1 refspecs with regards to the merge-base of the 1st refspec. Or, in lay-mans terms: I have a main and two branches that were incrementally merged to main. I'd like the subgraph that tracs merge-base of all of the aforementioned refspecs on the bottomo, the origin/main on top, and in-between the paths that those branches create with regards to main.

Would this be tracked here, or should I create a separate issue for it?

stdedos avatar Sep 13 '22 08:09 stdedos

@stdedos You could well make a separate issue for it, to avoid that it gets lost. Also, I think some graphical/ascii art illustration would help to understand your proposal.

mlange-42 avatar Sep 13 '22 09:09 mlange-42

Split to https://github.com/mlange-42/git-graph/issues/55

stdedos avatar Sep 13 '22 09:09 stdedos