Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
orloffm committed Nov 18, 2018
1 parent c6b9ce4 commit 6205d99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Prigitsk.Core/Rendering/TreeRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,18 @@ private static string MakeNodeIdForPointerLabel(INode node, IPointer pointer)

private IEnumerable<IBranch> OrderByFirstCommitDate(IEnumerable<IBranch> currentBranches, ITree tree)
{
var brancheList = new List<IBranch>();
var branchesList = new List<IBranch>();
var firstNodeDates = new Dictionary<IBranch, DateTimeOffset?>();
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<IBranch> byDateComparer = new BranchSorterByDate(firstNodeDates);
brancheList.Sort(byDateComparer);
return brancheList;
branchesList.Sort(byDateComparer);
return branchesList;
}

private void WriteBranchLabel(string id, IBranch b, IRemoteWebUrlProvider remoteUrlProvider)
Expand Down
5 changes: 4 additions & 1 deletion src/Prigitsk.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002ECSharpPlaceAttributeOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateThisQualifierSettings/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Consolas/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Jira/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Orlov/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Prigitsk/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Regices/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Treeish/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Treeish/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=workitem/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

0 comments on commit 6205d99

Please sign in to comment.