Repository navigation
Commit 7641ef9
fix(index): disable text conversion in empty-tree diffs
`IndexFile.diff()` compares the index to the empty tree through
`git diff --cached`. Git enables text conversion by default in
porcelain `git diff`, as documented in `Documentation/diff-options.adoc`.
The direct empty-tree path lacked the flag used by `Diffable.diff`.
Pass `--no-textconv` for raw and patch output so this path follows
GitPython's existing diff safety behavior.
The command-argument regression failed for both empty-tree spellings
and both output modes before the fix. The index, diff and CLI safety
suites passed with 187 tests and two skips on each backend.
Agent-Model: unknown1 parent 029964a commit 7641ef9
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
| 1668 | + | |
1668 | 1669 | | |
1669 | 1670 | | |
1670 | 1671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
121 | 132 | | |
122 | 133 | | |
123 | 134 | | |
| |||
0 commit comments