diff --git a/src/Commands/QueryCommits.cs b/src/Commands/QueryCommits.cs index 1e401a0a..5875301e 100644 --- a/src/Commands/QueryCommits.cs +++ b/src/Commands/QueryCommits.cs @@ -104,14 +104,6 @@ namespace SourceGit.Commands if (_findFirstMerged && !_isHeadFounded && _commits.Count > 0) MarkFirstMerged(); - foreach (var commit in _commits) - { - foreach (var parent in _commits.FindAll(c => commit.Parents.Contains(c.SHA))) - { - parent.Children.Add(commit.SHA); - } - } - return _commits; } diff --git a/src/Models/Commit.cs b/src/Models/Commit.cs index 69283e09..534cf5bb 100644 --- a/src/Models/Commit.cs +++ b/src/Models/Commit.cs @@ -28,7 +28,6 @@ namespace SourceGit.Models public ulong CommitterTime { get; set; } = 0; public string Subject { get; set; } = string.Empty; public List Parents { get; set; } = new List(); - public List Children { get; set; } = new List(); public List Decorators { get; set; } = new List(); public bool HasDecorators => Decorators.Count > 0; diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index 38b2de15..166ad3ab 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -125,7 +125,6 @@ INFORMATION AUTHOR CHANGED - CHILDREN COMMITTER Check refs that contains this commit COMMIT IS CONTAINED BY diff --git a/src/Views/CommitBaseInfo.axaml b/src/Views/CommitBaseInfo.axaml index 70fb2166..a16143ae 100644 --- a/src/Views/CommitBaseInfo.axaml +++ b/src/Views/CommitBaseInfo.axaml @@ -51,7 +51,7 @@ - + @@ -101,7 +101,7 @@ - + @@ -117,36 +117,14 @@ TextDecorations="Underline" Cursor="Hand" Margin="0,0,16,0" - PointerPressed="OnSHAPressed"/> - - - - - - - - - - - - - - - - + PointerPressed="OnParentSHAPressed"/> - - + + - - +