chopped the .git part from the repo name and the v from version name - stagit - default description
 (HTM) git clone git://thinkerwim.org/stagit.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 972798e2c0c733677139e9ebde2a20057421eaa2
 (DIR) parent 5b3196cf24d250c64927511e2c995eff5f432aa0
 (HTM) Author: Wim Stockman <wim@thinkerwim.org>
       Date:   Sun, 12 Mar 2023 21:40:30 +0100
       
       chopped the .git part from the repo name and the v from version name
       
       Diffstat:
         M stagit.c                            |      14 ++++++++++++--
       
       1 file changed, 12 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/stagit.c b/stagit.c
       @@ -1180,8 +1180,18 @@ writerefs(FILE *fp)
                        fputs("<tr><td>", fp);
                        xmlencode(fp, s, strlen(s));
                        fputs("</td><td>", fp);
       -                if(j) 
       -                        fprintf(fp, "<a href=\"%ssnapshot/\%s-%s.tar.gz\">%s-%s.tar.gz</a> ", relpath,name,s,name,s);
       +                if(j) {
       +                        char * shortrepo = NULL;
       +                        char * shorttag = NULL;
       +                        shortrepo = strdup(name);
       +                        shorttag = strdup(s);
       +                        size_t len = strlen(shortrepo);
       +                        shortrepo[len-4] = 0;
       +                        shorttag = shorttag+1;
       +                        
       +                        
       +                        fprintf(fp, "<a href=\"%ssnapshot/\%s-%s.tar.gz\">%s-%s.tar.gz</a> ", relpath,shortrepo,shorttag,shortrepo,shorttag);
       +                }
                        if(!j)  
                                xmlencode(fp, ci->summary, strlen(ci->summary));
                        fputs("</td><td>", fp);