GitGraph: added destination branch check into overlapping fn.
This commit is contained in:
parent
69ec4a0359
commit
8c43d2273f
|
@ -354,7 +354,9 @@ const drawCommits = (svg, commits, modifyGraph) => {
|
|||
const hasOverlappingCommits = (commitA, commitB, allCommits) =>
|
||||
Object.values(allCommits).some(
|
||||
(commitX) =>
|
||||
commitX.branch === commitA.branch && commitX.seq > commitA.seq && commitX.seq < commitB.seq
|
||||
(commitX.branch === commitA.branch || commitX.branch === commitB.branch) &&
|
||||
commitX.seq > commitA.seq &&
|
||||
commitX.seq < commitB.seq
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue