2 ms·
> searching for a function I deleted > git log -G someFunc This will look for all changes mentioning someFunc throughout the history of the project. Usua
by masklinn 3y ago
> searching for a function I deleted
> git log -G someFunc
This will look for all changes mentioning someFunc throughout the history of the project.
Usually -S is more valuable, as it will look for changes in occurrence counts. So if you moved a call in a commit -G will flag it, but -S will ignore it (+1-1 = 0).
-S also defaults to fixed string, so no need for -F. Instead you need —pickaxe-regex to switch it to regex search.