@@ -26,12 +26,12 @@ A JavaScript [library](https://www.nicoespeon.com/gitgraph.js/#0) to draw pretty
26
26
const myTemplateConfig = {
27
27
colors: [ " #f28e2c" , " #e15759" , " #59a14f" , " #76b7b2" , " #af7aa1" , " #edc949" , " #bab0ab" , " #9c755f" , " #bab0ab" ],
28
28
branch: { lineWidth: 8 , spacingX: 50 , showLabel: true , labelFont: " normal 14pt Courier New" , labelRotation: 0 },
29
- commit: { spacingY: - 40 , dot: { size: 12 },message: { displayAuthor: false , displayBranch: true , displayHash: false , font: " normal 12pt Arial" }, shouldDisplayTooltipsInCompactMode: " true" , tooltipHTMLFormatter : function (commit ) { return " " + commit .sha1 + " " + " : " + commit .message ; } }
29
+ commit: { spacingY: - 40 , dot: { size: 12 },message: { displayAuthor: true , displayBranch: true , displayHash: false , font: " normal 12pt Arial" }, shouldDisplayTooltipsInCompactMode: " true" , tooltipHTMLFormatter : function (commit ) { return " " + commit .sha1 + " " + " : " + commit .message ; } }
30
30
};
31
31
32
32
var myTemplate = new GitGraph.Template (myTemplateConfig);
33
33
34
- const gitgraph = new GitGraph ({ orientation: " vertical" , author: " Daljit Singh" , elementId: " graph" , initCommitOffsetX: 0 , initCommitOffsetY: 0 , mode: " extended" , template: myTemplate });
34
+ const gitgraph = new GitGraph ({ orientation: " vertical" , author: " Daljit Singh<daljitdokal@yahoo.co.nz> " , elementId: " graph" , initCommitOffsetX: 0 , initCommitOffsetY: 0 , mode: " extended" , template: myTemplate });
35
35
36
36
const prod = gitgraph .branch ({name: " production" , column: main[" prod" ][" index" ]}).commit ({ message: " Initial Commit" });
37
37
const stag = gitgraph .branch ({parentBranch: prod, name: " staging" , column: main[" stag" ][" index" ]}).commit ({ message: " Branch created" });
0 commit comments