项目文件夹

文件
github-actions[bot] e39bafc6d7
Build dist / build (push) Has been cancelled
CI / test (18.x) (push) Has been cancelled
CI / test (20.x) (push) Has been cancelled
build: compile dist/ [auto]
2026-07-21 02:37:52 +00:00

33 行
949 B
TypeScript

export interface LineDiff {
added: number;
deleted: number;
}
export interface TrackedFile {
basename: string;
fullPath: string;
type: 'modified' | 'added' | 'deleted';
lineDiff?: LineDiff;
}
export interface FileStats {
modified: number;
added: number;
deleted: number;
untracked: number;
trackedFiles: TrackedFile[];
}
export interface GitStatus {
branch: string;
isDirty: boolean;
ahead: number;
behind: number;
fileStats?: FileStats;
lineDiff?: LineDiff;
branchUrl?: string;
/** Which VCS produced this status. Omitted (undefined) means 'git'. */
vcs?: 'git' | 'jj';
/** jj-native: true when the working-copy commit has an unresolved conflict. */
conflict?: boolean;
}
export declare function getGitBranch(cwd?: string): Promise<string | null>;
export declare function getGitStatus(cwd?: string): Promise<GitStatus | null>;
//# sourceMappingURL=git.d.ts.map