diff: Decode Git-quoted paths
bb39ca0693d94e30eeafa2fb84588cd6485f1c98
Git quotes diff paths containing whitespace and non-ASCII bytes. Decode their C-style escapes before storing file headers so consumers address the actual repository path. Assisted-by: Codex:gpt-5.6-sol
1 parent
09c46319
crates/diff/src/decode.rs
+0 -0
{
+0 -0
+0 -0
=> break,
+0 -0
a.rs
+0 -0
new.rs
+0 -0
old.rs
+0 -0
to.rs
+0 -0
copy2.rs
+0 -0
mode.sh
+0 -0
image.png
+0 -0
caf\303\251\t\"slash\\.rs" "b/modified caf\303\251\t\"slash\\.rs"
+0 -0
ordinary.rs
+0 -0
from caf\303\251\t\"slash\\.rs" "b/rename to caf\303\251\t\"slash\\.rs"
+0 -0
"b/non-utf8-\377.rs"
+0 -0
a
+0 -0
a
+0 -0
a
+0 -0
a
+0 -0
a.rs
+0 -0
b.rs
+0 -0
a.rs\x1b[m
+0 -0