fix(server): status polling no longer locks the git index #14718
main fromrefs/pull/14718/head·merged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubShowing 1 changed file with 9 additions and 4 deletions.
🟡 Medium vcs/GitVcsDriverCore.ts:1782
Status reports zero insertions/deletions for files handled by configured textconv drivers, even when the converted content has changes. git diff-index does not enable textconv by default, unlike the replaced git diff; pass --textconv to preserve the previous statistics.
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/vcs/GitVcsDriverCore.ts around line 1782:
Status reports zero insertions/deletions for files handled by configured textconv drivers, even when the converted content has changes. `git diff-index` does not enable textconv by default, unlike the replaced `git diff`; pass `--textconv` to preserve the previous statistics.
🤖 Generated with Claude Code
False positive: porcelain git diff --numstat doesn't apply textconv either; textconv only affects patch output. Checked on git 2.56. With an uppercasing textconv driver, a→A gives 1 1 from both git diff HEAD --numstat and git diff-index -M --numstat HEAD. With a strings driver on a binary file, both report - - (--stat shows Bin 12 -> 12 bytes). So diff-index produces the same counts as before, and adding --textconv doesn't change them.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.