diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-10-20 22:59:48 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-10-20 22:59:48 +0000 |
| commit | 437cb57a9d19329a8e6ef3ed79e19adb45e83d50 (patch) | |
| tree | 6515d7279bdbdd993d45132bd57dc3746c87cbdf /plugins/code-modernization/scripts | |
| parent | beecef224291d252a87f58c5e83df28d15fe3450 (diff) | |
security-guidance: count reviews of a diff that was already reviewed
A change that comes back under a new commit (undo and re-commit, rebase
before the first push) is unknown to the reviewed-shas record, so the
commit or push review runs on it again. Nothing says how often.
Each commit and push review now notes a hash of every hunk it is sent in
.git/sg-reviewed-diffs, once when it starts and once when it has a
verdict, and reports one new metric, diff_seen:
0 some hunk was never reviewed in this clone
1 all were seen, but a review of one has no verdict (yet)
2 all had a finished review, on different repo contents
3 all had a finished review, on the same tree
-1 the record could not be read or written
Count only: no review is skipped, delayed or changed. The record is
bounded (1 MB, 7 days), is not written in portable output mode, and its
lock is never waited on for more than half a second.
Diffstat (limited to 'plugins/code-modernization/scripts')
0 files changed, 0 insertions, 0 deletions
