Find commits that changed a string
pickaxeFind when and by whom a piece of text was introduced by tracing commits whose diffs changed its occurrence count in GitLab history.
Instructions
Find the commits whose diff changed how often a piece of text appears — git log -S — so you can answer "when was this introduced, and by whom?". Each row is commit, date, author, subject, most recent first. The text is matched literally and case-insensitively, as search matches it, so a pickaxe never reports "nothing changed" about text the caller can see. Unlike search this walks the history of the ref and is therefore slower; pair it with search to go from "where is it" to "when did it appear". The ref defaults to the repository's default branch, and path is a git pathspec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit whose history to walk. Defaults to the default branch. | |
| path | No | A git pathspec to limit the search, e.g. 'src/components'. | |
| limit | No | Maximum commits to return (default 20). | |
| query | Yes | Exact text to follow through history, e.g. 'orderTotals'. | |
| project | No | GitLab project path, e.g. 'group/subgroup/repo'. Defaults to GITLAB_DEFAULT_PROJECT. | |
| case_sensitive | No | Follow the text case-sensitively. Default false: history is followed by case too. |