compare two refs - #21
Merged
Merged
Conversation
LuShadowX
commented
Aug 8, 2026
Owner
- Bring the README's platform, comparator and overhead claims up to date
- Let check compare two arbitrary refs
check took one ref and always compared it against the working tree, so
reviewing someone else's branch or auditing a release meant checking it out
first. A second optional positional ref is now the candidate:
nodrift check HEAD~1 HEAD
With no second ref the working tree is still the candidate, which is the
common case.
Closes #11
A repository with __pycache__ committed hands the replay bytecode compiled from other source. Python runs it in preference to the file git archive just materialised, so both versions behave identically and check reports no behaviour change while the code genuinely differs. Found while testing two-ref comparison: a tree staged from a commit containing POSITIVE replayed as positive, and check called it clean. The one-ref path had the same hole. Silent wrongness rather than an error, which is the worst failure this tool has. Compiled artifacts are now removed from every staged tree, exported or copied. The regression test commits stale bytecode deliberately and fails without the fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.