Skip to content

Commit 390b19d

Browse files
author
Geoffrey Broadwell
committed
Show tag dates in bench list-tags
1 parent c2fa1bc commit 390b19d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bench

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,14 @@ multi MAIN ('list-tags', *@components) {
247247
# Find all tags known in this component
248248
%*ENV<GIT_DIR> = "$comp_dir/$bare";
249249
my @all-tags = qx{git tag}.lines;
250-
%*ENV<GIT_DIR>:delete;
251250

252-
say " $_" for @all-tags;
251+
for @all-tags -> $tag {
252+
my $detect = "git show -s --format=%ct $tag^\{commit}";
253+
my $commit-time = qqx{$detect};
254+
my $date = DateTime.new(+$commit-time).Date;
255+
say " $date $tag";
256+
}
257+
%*ENV<GIT_DIR>:delete;
253258
}
254259
}
255260

0 commit comments

Comments
 (0)