API 参考
    正在准备搜索索引...

    变量 VipGit常量

    VipGit: {
        convertEmoji: (
            content: string,
            withSpace?: boolean | "leading" | "trailing" | "both",
        ) => string;
        execCommit: (args: string[]) => void;
        execPush: (args: string[]) => void;
        execTag: (args: string[]) => void;
        getCommitFirstLineMsg: () => string;
        getCommitLogs: (latestTag: string, branch?: string) => string[];
        getCommitTrimMsg: () => string;
        getCurrentBranch: () => string;
        getGitHubRepo: (baseUrl: string) => string;
        getLastMatchingTag: (inputTag: string) => undefined | string;
        getRecentCommit: () => GitInfo;
        getRecentCommitHash: () => string;
        getRecentCommitsByScope: (gitScope: string) => string[];
        getRecentCommitShortHash: () => string;
        getRemoteNames: () => string[];
        getTagInHead: () => null | string;
        getTags: () => string[];
        isPrerelease: (version: string) => boolean;
        isRepoShallow: () => boolean;
        parseCommitMsg: (message: string) => null | GitCommit;
        validateBranch: (allowBranch?: string | string[]) => void;
    } = ...

    Git业务相关

    类型声明

    • convertEmoji: (
          content: string,
          withSpace?: boolean | "leading" | "trailing" | "both",
      ) => string
    • execCommit: (args: string[]) => void
    • execPush: (args: string[]) => void
    • execTag: (args: string[]) => void
    • getCommitFirstLineMsg: () => string
    • getCommitLogs: (latestTag: string, branch?: string) => string[]
    • getCommitTrimMsg: () => string
    • getCurrentBranch: () => string
    • getGitHubRepo: (baseUrl: string) => string
    • getLastMatchingTag: (inputTag: string) => undefined | string
    • getRecentCommit: () => GitInfo
    • getRecentCommitHash: () => string
    • getRecentCommitsByScope: (gitScope: string) => string[]
    • getRecentCommitShortHash: () => string
    • getRemoteNames: () => string[]
    • getTagInHead: () => null | string
    • getTags: () => string[]
    • isPrerelease: (version: string) => boolean
    • isRepoShallow: () => boolean
    • parseCommitMsg: (message: string) => null | GitCommit
    • validateBranch: (allowBranch?: string | string[]) => void