log --grep: use the same helper to set -E/-F options as "git grep"