Skip to content

Commit 27b8eff

Browse files
support gitmailmap in GetCodeActivityStats() (#15009)
ref: - https://git-scm.com/docs/gitmailmap - https://git-scm.com/docs/git-log#Documentation/git-log.txt-emaNem Signed-off-by: a1012112796 <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent 5d57f4b commit 27b8eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/repo_stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (repo *Repository) GetCodeActivityStats(fromTime time.Time, branch string)
5959
_ = stdoutWriter.Close()
6060
}()
6161

62-
args := []string{"log", "--numstat", "--no-merges", "--pretty=format:---%n%h%n%an%n%ae%n", "--date=iso", fmt.Sprintf("--since='%s'", since)}
62+
args := []string{"log", "--numstat", "--no-merges", "--pretty=format:---%n%h%n%aN%n%aE%n", "--date=iso", fmt.Sprintf("--since='%s'", since)}
6363
if len(branch) == 0 {
6464
args = append(args, "--branches=*")
6565
} else {

0 commit comments

Comments
 (0)