修复git未跟踪文件目录显示不全

This commit is contained in:
xintaofei
2026-03-24 10:05:36 +08:00
parent a4805621f9
commit 6067d5f9c4
4 changed files with 21 additions and 7 deletions

View File

@@ -762,8 +762,14 @@ export async function gitSetRemoteUrl(
return invoke("git_set_remote_url", { path, name, url })
}
export async function gitStatus(path: string): Promise<GitStatusEntry[]> {
return invoke("git_status", { path })
export async function gitStatus(
path: string,
showAllUntracked?: boolean
): Promise<GitStatusEntry[]> {
return invoke("git_status", {
path,
showAllUntracked: showAllUntracked ?? null,
})
}
export async function gitDiff(path: string, file?: string): Promise<string> {