Skip to content

Commit 62757c5

Browse files
Update packages/mermaid/src/diagrams/git/gitGraphAst.ts
Co-authored-by: Sidharth Vinod <[email protected]>
1 parent e57fee1 commit 62757c5

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

packages/mermaid/src/diagrams/git/gitGraphAst.ts

-27
Original file line numberDiff line numberDiff line change
@@ -44,33 +44,6 @@ function getID() {
4444
return random({ length: 7 });
4545
}
4646

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-
// }
7447

7548
/**
7649
* @param list - list of items

0 commit comments

Comments
 (0)