fix: parse git apply paths correctly#8824
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2057d502c7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4b8330b5f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Fixes apply.rs path parsing so quoted diff headers are tokenized and C-style escapes are decoded, /dev/null headers are ignored before prefix stripping to avoid bogus dev/null paths, and git apply output paths are unescaped from C-style quoting; this prevents missed staging and misclassified paths when applying or reverting patches, improving reliability for repos with spaces or escaped characters in filenames. Tested with just fix -p codex-git and cargo test -p codex-git.