This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-09 16:37:40 -05:00
1 parent 27d404ba59
commit c5d4bf76a5
12 files changed
+461 -324

No files matched your search

+4 -2
View File
@@ -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)}`);