Skip to main content
ertius.org

git spelunking

I wanted to find something in some commit, and while trying to remember the right way to wrap around git rev-list --all, I found that git grew an option to just do that: git log -G<regexp> --branches --all1.

And when was it added? Let's find out:

❯ git log -G"-G" --pretty=format:"%h%x09%x09%ad%x09%s" --reverse -- Documentation/diff-options.txt
f506b8e8b5      2010-08-23 10:17:03 -0700   git log/diff: add -G<regexp> that greps in the patch text
5bc3f0b567      2013-05-31 17:42:15 +0530   diffcore-pickaxe doc: document -S and -G properly
9299f84921      2020-02-06 21:53:01 +0100   diff-options.txt: avoid "regex" overload in example
6b552e39c0      2024-11-18 22:05:50 +0000   doc: git-diff: apply format changes to diff-options
1f010d6bdf      2025-01-20 01:56:02 +0000   doc: use .adoc extension for AsciiDoc files