feat: add one-click git sync button

Combine fetch, pull with rebase, and push into one sync action
Keep remote dropdown focused on safe fetch actions
Block sync when uncommitted changes would conflict with rebase
This commit is contained in:
Bohdan Triapitsyn
2026-05-05 20:45:31 +03:00
parent ddfd2db0b8
commit c80c2b62a8
17 changed files with 217 additions and 209 deletions
+3 -2
View File
@@ -253,14 +253,15 @@ export async function handleStandardGitBridgeMessage(message: BridgeMessageInput
}
case 'api:git/pull': {
const { directory, remote, branch } = (payload || {}) as {
const { directory, remote, branch, rebase } = (payload || {}) as {
directory?: string;
remote?: string;
branch?: string;
rebase?: boolean;
};
const dirError = requireDirectory(id, type, directory);
if (dirError) return dirError;
const result = await gitService.gitPull(directory!, { remote, branch });
const result = await gitService.gitPull(directory!, { remote, branch, rebase });
return { id, type, success: true, data: result };
}