feat: version diffs work now

This commit is contained in:
2026-02-16 14:03:09 +01:00
parent 3c9d4b6bce
commit b19e92f729
13 changed files with 655 additions and 20 deletions

View File

@@ -58,6 +58,11 @@ export function registerIpcHandlers(): void {
return engine.getDiffContent(projectPath, filePath);
});
safeHandle('git:commitDiffContent', async (_, projectPath: string, commitHash: string) => {
const engine = getGitEngine();
return engine.getCommitDiffContent(projectPath, commitHash);
});
safeHandle('git:history', async (_, projectPath: string, limit?: number) => {
const engine = getGitEngine();
return engine.getHistory(projectPath, limit);