This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository fateserver.

commit 99a76d5abcf24d1470562d27b7b73721aa4d46a2
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Thu Aug 13 17:59:16 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Thu Aug 13 18:06:07 2026 +0200

    FATE: link revisions at a release tag to the tag
    
    A checkout of a release tag describes to just the tag name, with no
    hash to extract. Match also the release tag names `nN.N.N`, and link
    them.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 FATE.pm | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/FATE.pm b/FATE.pm
index 1f7a946..3c79ac5 100644
--- a/FATE.pm
+++ b/FATE.pm
@@ -203,14 +203,24 @@ sub rev_hash {
     return undef;
 }
 
+sub rev_tag {
+    my ($rev) = @_;
+    defined $rev and $rev =~ /^(n[0-9][0-9A-Za-z._-]{0,30})\z/ or return undef;
+    return $1;
+}
+
 sub rev_url {
+    return undef if not $gitrepo;
     my $hash = rev_hash $_[0];
-    return $gitrepo && $hash ? "$gitrepo/commit/$hash" : undef;
+    return "$gitrepo/commit/$hash" if $hash;
+    my $tag = rev_tag $_[0];
+    return "$gitrepo/src/tag/$tag" if $tag;
+    return undef;
 }
 
 sub compare_url {
-    my $old = rev_hash $_[0];
-    my $new = rev_hash $_[1];
+    my $old = rev_hash($_[0]) // rev_tag($_[0]);
+    my $new = rev_hash($_[1]) // rev_tag($_[1]);
     return $gitrepo && $old && $new ? "$gitrepo/compare/$old...$new" : undef;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to