pickaxe

A git log search, -S followed by a string, that finds commits which changed how many times that string appears in the code.

In more detail

Unlike --grep, which searches commit messages, -S searches the changes themselves, so it finds the commit that added or removed a function even if the message never mentions it. It is named after the idea of digging a string out of the history.

Example

git log --oneline -S split_line

Related terms

Taught in

References