mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-04-21 02:12:39 +00:00
29 lines
741 B
TypeScript
29 lines
741 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;
|
|
}
|
|
export declare function getGitBranch(cwd?: string): Promise<string | null>;
|
|
export declare function getGitStatus(cwd?: string): Promise<GitStatus | null>;
|
|
//# sourceMappingURL=git.d.ts.map
|