core: fix unicode filename handling in snapshot diff by disabling quote escaping

This ensures unicode and special characters in filenames are displayed correctly when generating diff patches, allowing proper file detection and revert operations
This commit is contained in:
Dax Raad
2026-01-24 13:07:01 -05:00
parent 087d7da14d
commit 32e6bcae3b
2 changed files with 65 additions and 10 deletions

View File

@@ -85,7 +85,7 @@ export namespace Snapshot {
const git = gitdir()
await $`git --git-dir ${git} --work-tree ${Instance.worktree} add .`.quiet().cwd(Instance.directory).nothrow()
const result =
await $`git -c core.autocrlf=false --git-dir ${git} --work-tree ${Instance.worktree} diff --no-ext-diff --name-only ${hash} -- .`
await $`git -c core.autocrlf=false -c core.quotepath=false --git-dir ${git} --work-tree ${Instance.worktree} diff --no-ext-diff --name-only ${hash} -- .`
.quiet()
.cwd(Instance.directory)
.nothrow()