mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +02:00
fixed types in gitGraphTypes
This commit is contained in:
@@ -213,7 +213,7 @@ export const merge = (
|
|||||||
id: customId ? customId : state.records.seq + '-' + getID(),
|
id: customId ? customId : state.records.seq + '-' + getID(),
|
||||||
message: `merged branch ${otherBranch} into ${state.records.currBranch}`,
|
message: `merged branch ${otherBranch} into ${state.records.currBranch}`,
|
||||||
seq: state.records.seq++,
|
seq: state.records.seq++,
|
||||||
parents: [state.records.head == null ? null : state.records.head.id, verifiedBranch],
|
parents: state.records.head == null ? [] : [state.records.head.id, verifiedBranch],
|
||||||
branch: state.records.currBranch,
|
branch: state.records.currBranch,
|
||||||
type: commitType.MERGE,
|
type: commitType.MERGE,
|
||||||
customType: overrideType,
|
customType: overrideType,
|
||||||
@@ -317,7 +317,7 @@ export const cherryPick = function (
|
|||||||
id: state.records.seq + '-' + getID(),
|
id: state.records.seq + '-' + getID(),
|
||||||
message: `cherry-picked ${sourceCommit?.message} into ${state.records.currBranch}`,
|
message: `cherry-picked ${sourceCommit?.message} into ${state.records.currBranch}`,
|
||||||
seq: state.records.seq++,
|
seq: state.records.seq++,
|
||||||
parents: [state.records.head == null ? null : state.records.head.id, sourceCommit.id],
|
parents: state.records.head == null ? [] : [state.records.head.id, sourceCommit.id],
|
||||||
branch: state.records.currBranch,
|
branch: state.records.currBranch,
|
||||||
type: commitType.CHERRY_PICK,
|
type: commitType.CHERRY_PICK,
|
||||||
tags: tags
|
tags: tags
|
||||||
|
@@ -15,7 +15,7 @@ export interface Commit {
|
|||||||
seq: number;
|
seq: number;
|
||||||
type: number;
|
type: number;
|
||||||
tags: string[];
|
tags: string[];
|
||||||
parents: (string | null)[];
|
parents: string[];
|
||||||
branch: string;
|
branch: string;
|
||||||
customType?: number;
|
customType?: number;
|
||||||
customId?: boolean;
|
customId?: boolean;
|
||||||
@@ -109,4 +109,4 @@ export interface GitGraphDB extends DiagramDB {
|
|||||||
getHead: () => Commit | null;
|
getHead: () => Commit | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DiagramOrientation = 'LR' | 'TB';
|
export type DiagramOrientation = 'LR' | 'TB' | 'BT';
|
||||||
|
Reference in New Issue
Block a user