diff --git a/src/Commands/QueryCommitChildren.cs b/src/Commands/QueryCommitChildren.cs index 2b8fd9f1..e6c76a99 100644 --- a/src/Commands/QueryCommitChildren.cs +++ b/src/Commands/QueryCommitChildren.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using SourceGit.ViewModels; namespace SourceGit.Commands { @@ -12,7 +13,7 @@ namespace SourceGit.Commands _commit = commit; if (string.IsNullOrEmpty(filters)) filters = "--all"; - Args = $"rev-list --parents {filters} ^{commit}"; + Args = $"rev-list -{Preference.Instance.MaxHistoryCommits} --parents {filters} ^{commit}"; } protected override void OnReadline(string line)