diff --git a/src/Commands/QueryCommitChildren.cs b/src/Commands/QueryCommitChildren.cs index ec6057a3..bcf63fa5 100644 --- a/src/Commands/QueryCommitChildren.cs +++ b/src/Commands/QueryCommitChildren.cs @@ -5,12 +5,14 @@ namespace SourceGit.Commands { public class QueryCommitChildren : Command { - public QueryCommitChildren(string repo, string commit) + public QueryCommitChildren(string repo, string commit, string filters) { WorkingDirectory = repo; Context = repo; _commit = commit; - Args = $"rev-list --parents --all ^{commit}"; + if (string.IsNullOrEmpty(filters)) + filters = "--all"; + Args = $"rev-list --parents {filters} ^{commit}"; } public IEnumerable Result() diff --git a/src/ViewModels/CommitDetail.cs b/src/ViewModels/CommitDetail.cs index 1d9495e4..f54ae5cb 100644 --- a/src/ViewModels/CommitDetail.cs +++ b/src/ViewModels/CommitDetail.cs @@ -540,7 +540,7 @@ namespace SourceGit.ViewModels Task.Run(() => { - var children = new Commands.QueryCommitChildren(_repo.FullPath, _commit.SHA).Result(); + var children = new Commands.QueryCommitChildren(_repo.FullPath, _commit.SHA, _repo.Settings.BuildHistoriesFilter()).Result(); Dispatcher.UIThread.Invoke(() => Children.AddRange(children)); });