summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/baseline_diff.py
diff options
context:
space:
mode:
authorMohamed Hegazy <mhegazy@anthropic.com>2026-10-12 17:18:45 +0000
committerClaude <noreply@anthropic.com>2026-10-12 17:19:01 +0000
commitccdb984025c4115b7d534a41a9fdad43a5283f74 (patch)
tree2249e94ce1658a68cf07e280505c04c209ec2d4c /plugins/code-modernization/scripts/baseline_diff.py
parentf359d43b406057f1a8cdbc4ea93b827642c162e6 (diff)
security-guidance: parse diff sections by header line
The diff parser split on the text 'diff --git ' anywhere, so a file whose own content contains it was cut short, and the rest of that file was never reviewed. It also dropped files whose names git quotes (a double quote, backslash or control character in the name). Split only where a line starts with the header, and decode quoted names.
Diffstat (limited to 'plugins/code-modernization/scripts/baseline_diff.py')
0 files changed, 0 insertions, 0 deletions