szz-bug-identifier
Installation
SKILL.md
SZZ Bug Identifier
SZZ (Śliwerski, Zimmermann, Zeller, 2005) answers: given a bug-fix commit, which earlier commit introduced the bug? It works by blaming the lines the fix touched.
The algorithm — classic SZZ
- Identify the fix commit. Usually via a link to an issue tracker (
Fixes #1234,BUG-567) or a message keyword (fix,bug,patch). - Extract the deleted/modified lines. In the fix's diff, every line removed or changed is a line that was (potentially) buggy.
- Blame each of those lines.
git blame <fix>^ -- <file>on each modified line to find the commit that last touched it before the fix. - Those blamed commits are bug-introducing candidates.
That's the whole algorithm. The rest is noise filtering.