nicoespeon / gitgraph.js

[ARCHIVED] A JavaScript library to draw pretty git graphs in the browser
https://www.nicoespeon.com/gitgraph.js
MIT License
3.02k stars 363 forks source link

commit branch after Merge broken the renderer branch-path #347

Closed KevvKo closed 3 months ago

KevvKo commented 4 years ago

In usage of compact mode, after the merge into the master, I try to commit this merged branch. It doesn`t rendering correctly. The commit from the merged branch renders with a broken path:

Code-Example


var master = gitgraph.branch("master").commit({subject: "", body: "1.0" }).tag("1.0");
var feature = gitgraph.branch("feature").commit({ subject: "", body: '1.1'}).tag("1.1");
master.merge(feature);
feature.commit({subject:"", body: "extend feature"}).tag("1.2");
master.commit();
feature.commit();`

The branch will be rendering correctly, if the master is after the merge commited, but this is not a possible usecase for me.

Is there a way to avoid this broken path of the branch, that render?

Thanks you for your help.

Best wishes

Kevin Klein
![example](https://user-images.githubusercontent.com/46719406/75342135-1b06f180-5896-11ea-92d0-d1ca7430b9a2.png)
KevvKo commented 4 years ago

example