optimize<Statistics>: add --branches --remotes to generated statistics

This commit is contained in:
leo 2022-01-12 10:30:16 +08:00
parent 4ef2a70ebd
commit 94ef2a9b69

View file

@ -44,7 +44,7 @@ namespace SourceGit.Views {
var week = today.DayOfWeek; var week = today.DayOfWeek;
var month = today.Month; var month = today.Month;
var limits = $"--since=\"{today.ToString("yyyy-MM-01 00:00:00")}\""; var limits = $"--branches --remotes --since=\"{today.ToString("yyyy-MM-01 00:00:00")}\"";
var commits = new Commands.Commits(repo, limits).Result(); var commits = new Commands.Commits(repo, limits).Result();
var totalCommitsMonth = commits.Count; var totalCommitsMonth = commits.Count;
var totalCommitsWeek = 0; var totalCommitsWeek = 0;