git-contributor-stats
Version:
CLI to compute contributor and repository statistics from a Git repository (commits, lines added/deleted, frequency, heatmap, bus-factor), with filters and multiple output formats.
13 lines • 531 B
TypeScript
interface GitResult {
ok: boolean;
stdout?: string;
error?: string;
code?: number;
}
type RunGitFunction = (repoPath: string, args: string[]) => GitResult;
export declare function safeReadPackageJson(): Record<string, unknown>;
export declare function ensureDir(dir: string): void;
export declare function tryLoadJSON(filePath: string): Record<string, unknown> | null;
export declare function countTotalLines(repoPath: string, runGit: RunGitFunction): Promise<number>;
export {};
//# sourceMappingURL=files.d.ts.map