-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitGraph rendering breaks chronology #4838
Comments
I was just taking a look here and I found that commit id "working on MDR" is repeated. Should this be considered a bug then? |
jepp, that seems to be the issue 👍 if I replace the ID with "further work on MDR", it renders correctly. otherwise mermaid doesn't seem to have an issue with repetitive commit IDs |
I have used mermaid, but never really looked into the code base. But I have experience with D3 and SVGs in general. Can I pick this up, and give it a try? PS: this is my first shot at open source contribution |
Is this actually the bug that needs addressing? Or is it more that Mermaid should have an issue with repeated/duplication commit IDs? Commit IDs should be unique generally, of course. But I think the "cherry-pick" feature in Mermaid would mean the IDs need to be unique for that feature to work. With unique IDs:
gitGraph
commit
branch develop
checkout develop
commit id:"hello"
commit id:"world"
checkout main
commit
cherry-pick id:"hello"
With duplicate IDs:
[NOTE: 2 commits now become 1] gitGraph
commit
branch develop
checkout develop
commit id:"hello"
commit id:"hello"
checkout main
commit
cherry-pick id:"hello"
|
Perhaps there's a feature request underlying this -- to have a commit "message:" parameter in the syntax too, which can be duplicated, while IDs remain unique |
Description
First of all: thanks for this amazing project! I use mermaid a lot :)
I'm trying to visualize the branch management for an open source MRI project, but the rendering has a glitch after a certain point (see code samples below)
Steps to reproduce
code sample before break
from belowcomplete code sample
working on MDR
inFORK-v1.0-MDR
comes beforeminor design changes for MDR
inv1-rc
, but appears after the merge in the rendered imageScreenshots
before break:
complete:
Code Sample
The text was updated successfully, but these errors were encountered: