'How can I use git log to show all prior commits that moved or deleted an occurrence of a particular search string or regex?
How can I use git log to show all prior commits that moved or deleted an occurrence of a particular search string or regex?
For example if I do:
git log -S mystring
Right now, it will just show the list of commits that changed the number of occurrences of the search string, "mystring." However it won't show which files it was changed in, or the diffs, etc.
I want to only see those commits that decreased the number of occurrences, along with a diff showing which files the deletion of that symbol occurred in (but no other diffs).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
