Rename branch (#199)
This is more important now that import app is available and not every git repo will be initialized with `main` as the default branch. This handles the other common case which is the `master` branch.
This commit is contained in:
@@ -29,6 +29,7 @@ import type {
|
||||
ApproveProposalResult,
|
||||
ImportAppResult,
|
||||
ImportAppParams,
|
||||
RenameBranchParams,
|
||||
} from "./ipc_types";
|
||||
import type { ProposalResult } from "@/lib/schemas";
|
||||
import { showError } from "@/lib/toast";
|
||||
@@ -816,4 +817,8 @@ export class IpcClient {
|
||||
}): Promise<{ exists: boolean }> {
|
||||
return this.ipcRenderer.invoke("check-app-name", params);
|
||||
}
|
||||
|
||||
public async renameBranch(params: RenameBranchParams): Promise<void> {
|
||||
await this.ipcRenderer.invoke("rename-branch", params);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user