File tree 1 file changed +0
-27
lines changed
packages/mermaid/src/diagrams/git
1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -44,33 +44,6 @@ function getID() {
44
44
return random ( { length : 7 } ) ;
45
45
}
46
46
47
- // function isFastForwardable(currentCommit, otherCommit) {
48
- // log.debug('Entering isFastForwardable:', currentCommit.id, otherCommit.id);
49
- // let cnt = 0;
50
- // while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit && cnt < 1000) {
51
- // cnt++;
52
- // // only if other branch has more commits
53
- // if (otherCommit.parent == null) break;
54
- // if (Array.isArray(otherCommit.parent)) {
55
- // log.debug('In merge commit:', otherCommit.parent);
56
- // return (
57
- // isFastForwardable(currentCommit, commits.get(otherCommit.parent[0])) ||
58
- // isFastForwardable(currentCommit, commits.get(otherCommit.parent[1]))
59
- // );
60
- // } else {
61
- // otherCommit = commits.get(otherCommit.parent);
62
- // }
63
- // }
64
- // log.debug(currentCommit.id, otherCommit.id);
65
- // return currentCommit.id === otherCommit.id;
66
- // }
67
-
68
- // function isReachableFrom(currentCommit, otherCommit) {
69
- // const currentSeq = currentCommit.seq;
70
- // const otherSeq = otherCommit.seq;
71
- // if (currentSeq > otherSeq) return isFastForwardable(otherCommit, currentCommit);
72
- // return false;
73
- // }
74
47
75
48
/**
76
49
* @param list - list of items
You can’t perform that action at this time.
0 commit comments