I just found out the differences between
git log --all -G "mystring"
and,
git log --all -S "mystring"
as you can see here, for example.
But, I'd like to know if I can specify several regular expressions (a.k.a. regex) to -G, with something like:
git log --all -G "str1" --and -G "str2"
Of course, I can always wrap git commands inside python or bash scripts, but I'd like to know if using pure-git-commands, I can do this.
Thanks very much!!
-Stakes a string while-Gtakes a regex (already), and you can make the-Sargument a regex by adding--pickaxe-regex. See the gitdiffcore documentation: kernel.org/pub/software/scm/git/docs/gitdiffcore.html - and then note that "exp1 AND exp2" is almost (but not exactly) "(exp1.*exp2)|(exp2.*exp1)" in "regex algebra".