-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscr.js
33 lines (31 loc) · 832 Bytes
/
scr.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var myTemplateConfig = {
branch: {
lineWidth: 5,
spacingX: 50,
showLabel: true, // display branch names on graph
},
commit: {
spacingY: -40,
dot: {
size: 12
},
message: {
displayAuthor: false,
displayBranch: false,
displayHash: false,
font: "normal 12pt Arial"
},
shouldDisplayTooltipsInCompactMode: false, // default = true
tooltipHTMLFormatter: function ( commit ) {
return "" + commit.sha1 + "" + ": " + commit.message;
}
}
};
var myTemplate = new GitGraph.Template( myTemplateConfig );
var git = new GitGraph({
elementId: 'gitGraph',
orientation: 'vertical',
template: myTemplate
});
var master = git.branch('master')
.commit('original commit')