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:
@@ -20,6 +20,7 @@ import type {
|
||||
GitCommitResult,
|
||||
GitPushResult,
|
||||
GitPullResult,
|
||||
GitPullOptions,
|
||||
GitLogOptions,
|
||||
GitLogResponse,
|
||||
GitCommitFilesResponse,
|
||||
@@ -518,7 +519,7 @@ export async function gitPush(
|
||||
|
||||
export async function gitPull(
|
||||
directory: string,
|
||||
options: { remote?: string; branch?: string } = {}
|
||||
options: GitPullOptions = {}
|
||||
): Promise<GitPullResult> {
|
||||
const response = await fetch(buildUrl(`${API_BASE}/pull`, directory), {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user