Skip to content

gitGraph support parallel commit #5114

Closed
@ppggff

Description

Description

Consider following diagram:

gitGraph
    commit
    commit
    branch develop
    checkout develop
    commit
    commit
    checkout main
    commit
    commit
gitGraph
    commit
    commit
    branch develop
    checkout develop
    commit
    commit
    checkout main
    commit
    commit
Loading

The last two commits in the main branch are committed after the two in the develop branch.
Is there a way to show them as parallel commits?

Such as:

Screenshot 2023-12-05 at 14 35 06

May be add a option to the checkout command?

Steps to reproduce

as above

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions