I frequently run
git log -10 --author="<author name>" --grep="<story of interest>"
Is it possible to configure a git alias similar to
git by "<author name>" "<story of interest>" -10
that will accomplish the same thing?
The documentation makes no mention of parameters.
You can create alias as a shell command:
git config alias.agrep '!f() { git log -10 --author="$1" --grep="$2"; }; f'
Now call git agrep with 2 parameters: git agrep Matt test.
See GitAlias repo for dozens of useful aliases and examples. Full disclosure: I'm a contributor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With