Skip to content

Commit c0eba51

Browse files
committed
feature: respect global commit limit for a good measure
1 parent 0ea0cb4 commit c0eba51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Commands/QueryCommitChildren.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using SourceGit.ViewModels;
34

45
namespace SourceGit.Commands
56
{
@@ -12,7 +13,7 @@ public QueryCommitChildren(string repo, string commit, string filters)
1213
_commit = commit;
1314
if (string.IsNullOrEmpty(filters))
1415
filters = "--all";
15-
Args = $"rev-list --parents {filters} ^{commit}";
16+
Args = $"rev-list -{Preference.Instance.MaxHistoryCommits} --parents {filters} ^{commit}";
1617
}
1718

1819
protected override void OnReadline(string line)

0 commit comments

Comments
 (0)