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_lineRelated terms
- git log — The Git command that lists commits with their identifiers, authors, times and messages.
- commit limiting — git log options that keep only the commits you ask about, by count, date, author or words in the message.
Taught in
- Reading History: log, show And diff — Advanced Git Internals & Distributed Workflows