rgit tracks modern git's output and gates its byte-parity tests on the oracle's behavior
Context#
rgit compares its output with real git in tests. CI runs a newer git (2.55) than the developer's Apple git (2.50.1). Many outputs changed between those versions (replay, log -L, hooks, add -p, worktree list, apply -N).
Decision#
rgit follows the newest git format. A byte-parity test probes the oracle's behavior (a capability probe, such as running the command once) and skips or normalizes on an older oracle, rather than matching two generations. Where rgit's own format was already better or consistent with its own -p output, it keeps it. The -L output follows rgit's regular diff rendering. If users want exactly git's old format, add an opt-in flag; do not chase the oracle by default.
Why#
The user asked to keep rgit's good output and make the tests make sense. Matching two generations at once cannot work, because the formats differ in structure (line counts, key lists, navigation wrap). A probe of behavior stays correct when a distro ships a snapshot version.
Rejected options#
Matching old and new git at once: not possible. Keeping the old -L quirks (they came from git's old renderer): rgit's -p path never had them. Gating by version number: a runner's "2.55.0" can differ from a final 2.55.0.
Also found by searching
- byte parity test fails on Apple git 2.50.1 but passes on CI git 2.55
- rgit output matches one git version but tests break with the other
- which git version should rgit output follow and how do parity tests handle older git
- capability probe skip normalize oracle git version differences replay log -L worktree list
- rgit parity test fails on my Mac with Apple git 2.50.1 but passes in CI with git 2.55
- byte-parity test of rgit replay or log -L output differs from git, which git version should it match?
- should rgit match old git output format or the newest, and how do tests deal with older git?
- capability probe skip on older oracle git, worktree list, add -p, apply -N output changed between versions