@jasondark/proompt
Version:
CLI tool for running AI prompts with structure and repeatability
22 lines • 819 B
TypeScript
/**
* Check if the current directory is a git repository
*/
export declare const isGitRepository: () => boolean;
/**
* Get the current git commit hash
* @returns The current commit hash or null if not in a git repository
*/
export declare const getCurrentCommitHash: () => string | null;
/**
* Get git diff between two commits
* @param fromCommit The starting commit hash
* @param toCommit The ending commit hash (defaults to HEAD)
* @returns The git diff output or null if error
*/
export declare const getGitDiff: (fromCommit: string, toCommit?: string) => string | null;
/**
* Get a short version of the commit hash (first 7 characters)
* @returns The short commit hash or null if not in a git repository
*/
export declare const getShortCommitHash: () => string | null;
//# sourceMappingURL=git.d.ts.map