Skip to main content

Crate choir_revert_scan

Crate choir_revert_scan 

Source
Expand description

choir-revert-scan: falsification (c), as a binary with a number.

Points choir_merge::silent_revert at one or more repositories and reports how many landed merges removed or added lines that neither side did. Read-only: it clones nothing, fetches nothing, and writes nothing anywhere.

choir-revert-scan [--max N] [--quiet] <repo>...

--max N caps the merges examined per repository (0, the default, is all of them). --quiet prints the counts without the individual findings, which is what you want across fifty repositories and not what you want before quoting the number at anybody: the findings are where the false positives are visible.

Exit status is 0 whether or not anything is found. Both outcomes are answers โ€“ the kill criterion was fixed before the number was known โ€“ so a zero here is a result, not a failure, and must not be wired to a gate that treats it as one.

Functionsยง

fail ๐Ÿ”’
Prints msg and exits 2, the way a usage error should.
main ๐Ÿ”’