1
0

Add function to check if repo has a specific commit

This commit is contained in:
2025-05-25 05:07:33 +02:00
parent d4c83d8df5
commit 0253a5c9d6

View File

@@ -46,7 +46,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
onFoldersLocationUpdated: (callback) => ipcRenderer.on('folders-location-updated', (e, folderObj) => callback(folderObj)),
isGitRepo: (path) => ipcRenderer.invoke('is-git-repo', path),
relocateFolder: (oldPath, newPath) => ipcRenderer.invoke('relocate-folder', oldPath, newPath),
pickFolder: () => ipcRenderer.invoke('pick-folder') // Picker muss im Main auch exposed sein!
pickFolder: () => ipcRenderer.invoke('pick-folder'),
repoHasCommit: (repoPath, commitHash) => ipcRenderer.invoke('repo-has-commit', repoPath, commitHash),
});
ipcRenderer.on('repo-updated', (_e, folder) => {