question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow gitGraph commit.id to be set

See original GitHub issue

Is your feature request related to a problem? Please describe. I am always pushing for people to move from SVN or other types of no-versioning-systems to git. To do this a graphic representation does wonders. Mermaid is in a form that makes lends itself to a somewhat

Describe the solution you’d like I’d like to be able to set the id for git commits to a given string. This way I could use mermaid to render a git graph for repositories actually in use with the actual commit messages or short-SHA’s.

gitGraph:
options
{
    "nodeSpacing": 150,
    "nodeRadius": 10
}
end
commit["Initial Commit"]
branch newbranch
checkout newbranch
commit["added things on newbranch"]
commit["could also be an actual commit SHA"]
checkout master
commit
commit
merge newbranch

Describe alternatives you’ve considered GitX and the git cli, which are not integrated with display solutions like Grafana.

Additional context The endgame would be to use a decent git graph and then color it’s branches according to it’s build/test status to provide a great overview for CI/CD. This would be done in using the mermaid diagram plugin for Grafana and feeding it a gitGraph generated on changes via hooks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:5

github_iconTop GitHub Comments

2reactions
nirgn975commented, Oct 2, 2020

I would also love a way to set the hashes myself and not let them be randomly generated every refresh.

0reactions
ashishjain0512commented, May 24, 2022

The newer version of GitGraph solves this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gitgraph Diagrams - Mermaid
Mermaid allows you to set the colors for up-to 8 branches specific highlight commit, where gitInv0 variable will drive the value of the...
Read more >
Git Graph - Visual Studio Marketplace
Allows you to view, add, edit, delete, fetch & prune remotes of the repository. Configure "Issue Linking" - Converts issue numbers in commit...
Read more >
Gitgraph.js — @nicoespeon's blog - Nicolas Carlo
the targetted canvas ID ( "gitGraph" is the default); A default author for commits messages. And so we create our very first graph...
Read more >
Is there a way to show the git log graph from the HEAD to a ...
Let's say that master points to some commit whose hash ID we've shortened to one uppercase letter, G : G <--master.
Read more >
VS Code tips — The Git Graph extension - YouTube
Get visual and interactive view of the current .git repository with the Git Graph extension for VS Code.Browse through commits, switch ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found