From 0fbf53c36092827cd66faea2b8899dcabf399cc7 Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Sun, 17 Nov 2024 03:28:26 +0100 Subject: [PATCH] fix: use preference MaxHistoryCommits --- src/Commands/Statistics.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Commands/Statistics.cs b/src/Commands/Statistics.cs index adfcc574..40ecc24a 100644 --- a/src/Commands/Statistics.cs +++ b/src/Commands/Statistics.cs @@ -1,4 +1,5 @@ using System; +using SourceGit.ViewModels; namespace SourceGit.Commands { @@ -8,7 +9,7 @@ namespace SourceGit.Commands { WorkingDirectory = repo; Context = repo; - Args = $"log --date-order --branches --remotes -40000 --pretty=format:\"%ct$%aN\""; + Args = $"log --date-order --branches --remotes -{Preference.Instance.MaxHistoryCommits} --pretty=format:\"%ct$%aN\""; } public Models.Statistics Result()