aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-03-18 05:00:26 +0800
committerGitHub <noreply@github.com>2021-03-17 17:00:26 -0400
commit27b8eff96ba84d69d8902fbe62c52878aee5ce89 (patch)
tree05c4e4a464f6f496d44507a54b9b73253047c4ff /modules/git
parent5d57f4bcb885236865126caec7ab3a74157e4aea (diff)
downloadgitea-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.go2
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 {