From 6205d99a6e5b19f98259928845d1e4615fc84aee Mon Sep 17 00:00:00 2001 From: Mikhail Orlov Date: Sun, 18 Nov 2018 14:29:50 +0100 Subject: [PATCH] minor --- src/Prigitsk.Core/Rendering/TreeRenderer.cs | 8 ++++---- src/Prigitsk.sln.DotSettings | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Prigitsk.Core/Rendering/TreeRenderer.cs b/src/Prigitsk.Core/Rendering/TreeRenderer.cs index a62227f..f86d372 100644 --- a/src/Prigitsk.Core/Rendering/TreeRenderer.cs +++ b/src/Prigitsk.Core/Rendering/TreeRenderer.cs @@ -207,18 +207,18 @@ private static string MakeNodeIdForPointerLabel(INode node, IPointer pointer) private IEnumerable OrderByFirstCommitDate(IEnumerable currentBranches, ITree tree) { - var brancheList = new List(); + var branchesList = new List(); var firstNodeDates = new Dictionary(); foreach (IBranch b in currentBranches) { - brancheList.Add(b); + branchesList.Add(b); DateTimeOffset? firstNodeDate = tree.EnumerateNodes(b).FirstOrDefault()?.Commit?.Committer?.When; firstNodeDates.Add(b, firstNodeDate); } IComparer byDateComparer = new BranchSorterByDate(firstNodeDates); - brancheList.Sort(byDateComparer); - return brancheList; + branchesList.Sort(byDateComparer); + return branchesList; } private void WriteBranchLabel(string id, IBranch b, IRemoteWebUrlProvider remoteUrlProvider) diff --git a/src/Prigitsk.sln.DotSettings b/src/Prigitsk.sln.DotSettings index a29f852..f85f42b 100644 --- a/src/Prigitsk.sln.DotSettings +++ b/src/Prigitsk.sln.DotSettings @@ -285,7 +285,10 @@ True True True + True + True True True True - True \ No newline at end of file + True + True \ No newline at end of file