doctool
Version:
AI-powered documentation validation and management system
28 lines (27 loc) • 850 B
TypeScript
export interface GitChanges {
newFiles: string[];
modifiedFiles: string[];
deletedFiles: string[];
lastCommitDate?: Date;
}
export interface RepositoryInfo {
hasGit: boolean;
lastCommitDate?: Date;
workingDirectory: string;
}
/**
* Checks if git is available and the directory is a git repository
*/
export declare function getRepositoryInfo(basePath: string): RepositoryInfo;
/**
* Gets changes since a specific date using git
*/
export declare function getChangesSinceDate(basePath: string, sinceDate: Date): GitChanges;
/**
* Gets the last update timestamp from a knowledge file
*/
export declare function getLastUpdateTimestamp(knowledgeFilePath: string): Date | null;
/**
* Checks if there are uncommitted changes in the repository
*/
export declare function hasUncommittedChanges(basePath: string): boolean;