Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

How to display branch label on all commits? #294

@IsaacHub

Description

@IsaacHub

I have this:

<div id="gitgraph"></div>
 const graphOptions ={
 orientation:'vertical-reverse'
 }
    const graphContainer = document.getElementById("gitgraph");

    const gitgraph = GitgraphJS.createGitgraph(graphContainer,graphOptions);

    const master = gitgraph.branch("master");
    master.commit("Initial commit");

    const develop = gitgraph.branch("develop");
    develop.commit("Add TypeScript");

    const aFeature = gitgraph.branch("a-feature");
    aFeature
      .commit("Make it work")
      .commit("Make it right")
      .commit("Make it fast");

    develop.merge(aFeature);
    develop.commit("Prepare v1");

    master.merge(develop).tag("v1.0.0");


gitgraphissue

As you can see branch labels not appearing on all commits, but I want the branch labels on all commits. How to achieve that?
Here is the fiddle

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions