| โฆ | โฆ | @@ -1771,10 +1774,12 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function* | |
| 1775 | 1780 | "GitVcsDriver.statusDetails.numstat", | |
| 1776 | 1781 | cwd, | |
| 1777 | - | ["diff", "HEAD", "--numstat", "--"], | |
| 1782 | + | ["diff-index", "-M", "--numstat", "HEAD", "--"], | |
๐ก 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:
| 1 | In file @apps/server/src/vcs/GitVcsDriverCore.ts around line 1782: |
| 2 | |
| 3 | 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.