@mintlify/prebuild
Version:
Helpful functions for Mintlify's prebuild step
9 lines (8 loc) • 480 B
TypeScript
/**
* Gets git blame data for a file, returning a map of line numbers to ISO date strings.
* Uses author-time (when the change was originally created) rather than committer-time.
* @param filePath - Absolute path to the file
* @param repoPath - Path to the git repository root
* @returns Record<number, string> mapping line numbers (1-indexed) to ISO date strings
*/
export declare const getGitBlame: (filePath: string, repoPath: string) => Promise<Record<number, string>>;