fix: use preference MaxHistoryCommits

This commit is contained in:
Dmitrij D. Czarkoff 2024-11-17 03:28:26 +01:00
parent b7abf2ee50
commit 0fbf53c360
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
using System; using System;
using SourceGit.ViewModels;
namespace SourceGit.Commands namespace SourceGit.Commands
{ {
@ -8,7 +9,7 @@ namespace SourceGit.Commands
{ {
WorkingDirectory = repo; WorkingDirectory = repo;
Context = 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() public Models.Statistics Result()