Skip to content

Commit 434777d

Browse files
committed
fix: use preference MaxHistoryCommits
1 parent 882878d commit 434777d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Commands/Statistics.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using SourceGit.ViewModels;
23

34
namespace SourceGit.Commands
45
{
@@ -8,7 +9,7 @@ public Statistics(string repo)
89
{
910
WorkingDirectory = repo;
1011
Context = repo;
11-
Args = $"log --date-order --branches --remotes -40000 --pretty=format:\"%ct$%aN\"";
12+
Args = $"log --date-order --branches --remotes -{Preference.Instance.MaxHistoryCommits} --pretty=format:\"%ct$%aN\"";
1213
}
1314

1415
public Models.Statistics Result()

0 commit comments

Comments
 (0)