This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-17 11:18:55 +02:00
1 parent bcfac08952
commit 08d2afffc5
4 files changed
+80 -21

No files matched your search

+6
View File
@@ -45,6 +45,9 @@ export const getGitShow = (root: string, ref: string) =>
export const getGitBranches = (root: string) =>
fetchJSON(`/api/git/branches?root=${encodeURIComponent(root)}`);
export const getGitStashes = (root: string) =>
fetchJSON(`/api/git/stashes?root=${encodeURIComponent(root)}`);
export const stageFiles = (root: string, files: string[]) =>
fetchJSON('/api/git/stage', jsonBody({ root, files }));
@@ -75,6 +78,9 @@ export const gitUncommit = (root: string) => fetchJSON('/api/git/uncommit', json
export const gitStash = (root: string, message?: string) =>
fetchJSON('/api/git/stash', jsonBody({ root, message }));
export const gitUnstash = (root: string, index = 0) =>
fetchJSON('/api/git/unstash', jsonBody({ root, index }));
export const createGitBranch = (root: string, name: string) =>
fetchJSON('/api/git/branch', jsonBody({ root, name }));