Merge pull request #181 from jwilk-forks/anchor-regexps

Anchor regexps in commitsPerAuthor()
This commit is contained in:
arzzen 2025-06-08 19:33:43 +02:00 committed by GitHub
commit d1641f7bf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -715,10 +715,10 @@ function commitsPerAuthor() {
optionPicked "Git commits per author:"
local authorCommits=$(git -c log.showSignature=false log --use-mailmap \
$_merges "$_since" "$_until" $_log_options \
| grep -i Author: | cut -c9-)
| grep -i '^Author:' | cut -c9-)
local coAuthorCommits=$(git -c log.showSignature=false log --use-mailmap \
$_merges "$_since" "$_until" $_log_options \
| grep -i Co-Authored-by: | cut -c21-)
| grep -i '^ Co-Authored-by:' | cut -c21-)
if [[ -z "${coAuthorCommits}" ]]; then
allCommits="${authorCommits}"