mirror of
https://github.com/open-webui/computer.git
synced 2026-12-01 09:22:45 -05:00
refac
This commit is contained in:
1 parent
27d404ba59
commit
c5d4bf76a5
12 files changed
+461
-324
No files matched your search
@@ -39,8 +39,10 @@ export const getGitLog = (root: string, limit = 30) =>
|
||||
|
||||
export const getGitDiff = (params: string) => fetchJSON(`/api/git/diff?${params}`);
|
||||
|
||||
export const getGitShow = (root: string, ref: string) =>
|
||||
fetchJSON(`/api/git/show?root=${encodeURIComponent(root)}&ref=${encodeURIComponent(ref)}`);
|
||||
export const getGitShow = (root: string, ref: string, ignoreWhitespace = false) =>
|
||||
fetchJSON(
|
||||
`/api/git/show?root=${encodeURIComponent(root)}&ref=${encodeURIComponent(ref)}&ignore_whitespace=${ignoreWhitespace}`
|
||||
);
|
||||
|
||||
export const getGitBranches = (root: string) =>
|
||||
fetchJSON(`/api/git/branches?root=${encodeURIComponent(root)}`);
|
||||
|
||||
Reference in new issue
Block a user