UNPKG

long-git-cli

Version:

A CLI tool for Git tag management.

29 lines 1.5 kB
/** 检查当前目录是否为有效的 Git 仓库 */ export declare function checkGitRepository(): Promise<void>; /** 获取当前分支名称 */ export declare function getCurrentBranch(): Promise<string>; /** 拉取最新的远程 tag 信息(带 loading) */ export declare function fetchLatestTags(remoteType?: string): Promise<void>; /** 推送所有 tag(带 loading) */ export declare function pushTags(): Promise<void>; /** 推送当前分支(带 loading) */ export declare function pushCurrentBranch(): Promise<void>; /** 获取最新的 tag(test-v 格式) */ export declare function getLatestTag(): Promise<string | null>; /** 拉取远程并 rebase(带 loading),指定远程和分支名,精准判断冲突 */ export declare function pullRebaseWithLoading(): Promise<void>; /** 拉取远程(带 loading),不加 --rebase */ export declare function pullWithLoading(): Promise<void>; /** 检查是否有待提交的文件 */ export declare function checkHasStagedFiles(): Promise<string[]>; /** 检查是否有未暂存的修改 */ export declare function checkHasUnstagedChanges(): Promise<{ notAdded: string[]; modified: string[]; hasChanges: boolean; }>; /** 自动 add 所有文件 */ export declare function addAllFiles(): Promise<void>; /** 生成规范化的 commit message */ export declare function formatCommitMessage(type: string, subject: string, scope?: string, body?: string, footer?: string): string; //# sourceMappingURL=git.d.ts.map