diff options
author | a1012112796 <1012112796@qq.com> | 2021-03-18 05:00:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 17:00:26 -0400 |
commit | 27b8eff96ba84d69d8902fbe62c52878aee5ce89 (patch) | |
tree | 05c4e4a464f6f496d44507a54b9b73253047c4ff /modules/git | |
parent | 5d57f4bcb885236865126caec7ab3a74157e4aea (diff) | |
download | gitea-27b8eff96ba84d69d8902fbe62c52878aee5ce89.tar.gz gitea-27b8eff96ba84d69d8902fbe62c52878aee5ce89.zip |
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 <1012112796@qq.com>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/repo_stats.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_stats.go b/modules/git/repo_stats.go index 59b8177401..cb2a2bcf51 100644 --- a/modules/git/repo_stats.go +++ b/modules/git/repo_stats.go @@ -59,7 +59,7 @@ func (repo *Repository) GetCodeActivityStats(fromTime time.Time, branch string) _ = stdoutWriter.Close() }() - args := []string{"log", "--numstat", "--no-merges", "--pretty=format:---%n%h%n%an%n%ae%n", "--date=iso", fmt.Sprintf("--since='%s'", since)} + args := []string{"log", "--numstat", "--no-merges", "--pretty=format:---%n%h%n%aN%n%aE%n", "--date=iso", fmt.Sprintf("--since='%s'", since)} if len(branch) == 0 { args = append(args, "--branches=*") } else { |