Skip to content

Commit 1c0d8a2

Browse files
committed
fix: git rev-list do not support --decorate-refs-exclude (#746)
Do not use histories filters to query commit children
1 parent d38d1b1 commit 1c0d8a2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Commands/QueryCommitChildren.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ namespace SourceGit.Commands
44
{
55
public class QueryCommitChildren : Command
66
{
7-
public QueryCommitChildren(string repo, string commit, int max, string filters)
7+
public QueryCommitChildren(string repo, string commit, int max)
88
{
99
WorkingDirectory = repo;
1010
Context = repo;
1111
_commit = commit;
12-
if (string.IsNullOrEmpty(filters))
13-
filters = "--branches --remotes --tags";
14-
Args = $"rev-list -{max} --parents {filters} ^{commit}";
12+
Args = $"rev-list -{max} --parents --branches --remotes ^{commit}";
1513
}
1614

1715
public IEnumerable<string> Result()

src/ViewModels/CommitDetail.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,7 @@ private void Refresh()
576576
Task.Run(() =>
577577
{
578578
var max = Preference.Instance.MaxHistoryCommits;
579-
var filter = _repo.Settings.BuildHistoriesFilter();
580-
var cmdChildren = new Commands.QueryCommitChildren(_repo.FullPath, _commit.SHA, max, filter) { Cancel = _cancelToken };
579+
var cmdChildren = new Commands.QueryCommitChildren(_repo.FullPath, _commit.SHA, max) { Cancel = _cancelToken };
581580
var children = cmdChildren.Result();
582581
if (!cmdChildren.Cancel.Requested)
583582
Dispatcher.UIThread.Post(() => Children.AddRange(children));

0 commit comments

Comments
 (0)