Add a note about filtering logs

This commit is contained in:
Asocia 2021-06-30 13:18:59 +03:00
parent 5787b4cfe5
commit 761f8f16e7

View File

@ -18,3 +18,11 @@ The --author option allows you to filter on a specific author
``` ```
git log --author="Asocia" git log --author="Asocia"
``` ```
- Getting the logs for a specific string
Another really helpful filter is the -S option (colloquially referred to as Gits “pickaxe” option), which takes a string and shows only those commits that changed the number of occurrences of that string. For instance, if you wanted to find the last commit that added or removed a reference to a specific function, you could call:
```
git log -S function_name
```