From 1202230001ef073d7ef6d43926a8da28ace5bbca Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Sun, 10 Nov 2024 17:30:08 +0100 Subject: [PATCH] Revert "feature: add children list to the commit base info view" This reverts commit 7ba35e197342d5d1e569e8d778e630613e839ab2. --- src/Commands/QueryCommits.cs | 8 ------- src/Models/Commit.cs | 1 - src/Resources/Locales/en_US.axaml | 1 - src/Views/CommitBaseInfo.axaml | 36 ++++++------------------------- src/Views/CommitBaseInfo.axaml.cs | 2 +- 5 files changed, 8 insertions(+), 40 deletions(-) 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"/> - - + + - - +