From 6ec838afa892be452e2e4f2fd00591e82741e615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Tegn=C3=A9r?= Date: Wed, 25 May 2022 13:15:23 +0200 Subject: [PATCH] hotfix: Order tags by timestamp on referenced commit. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Need to figure out a good way to handle this. Signed-off-by: Johannes Tegnér --- cc-gen/Commands/GenerateCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc-gen/Commands/GenerateCommand.cs b/cc-gen/Commands/GenerateCommand.cs index f45a27a..83271d3 100644 --- a/cc-gen/Commands/GenerateCommand.cs +++ b/cc-gen/Commands/GenerateCommand.cs @@ -52,7 +52,7 @@ public GenerateCommand() string? toSha = null; // We want to read from other way around (latest first)! - var allTags = repository.Tags.Reverse().ToList(); + var allTags = repository.Tags.OrderBy(x => ((Commit)x.PeeledTarget).Committer.When).Reverse().ToList(); if (allTags.Count == 0) {