Files
codex/codex-rs
Eric Traut 0c28cdec2b Fix untracked file handling in the TUI Git diff (#64616)
## Why

The TUI can silently omit untracked files when Git quotes their names,
when their names have leading or trailing whitespace, or when they
disappear between listing and comparison.

## What changed

Read NUL-delimited paths from `git ls-files` without trimming them,
skip directory entries for untracked nested repositories, and use Git's
`/dev/null` handling across local and remote workspaces. Warn when an
untracked file can't be compared while still showing the available patches.

## Testing

Exercise a clean repository and an untracked file named ` café.txt`
beside a nested repository. Verify that a missing file produces a warning
while tracked and other untracked patches remain visible, including a patch
that Git emits alongside a line-ending warning.

GitOrigin-RevId: b92922ea49928381504dc11b71d599c60dbb7068
2026-11-29 16:23:26 +00:00
..
…
…
…