removed the separte Release Page included it in the refs page - stagit - default description
(HTM) git clone git://thinkerwim.org/stagit.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2bf5efd4fef3552b061c2f76cd9b5f336377a1e4
(DIR) parent 972798e2c0c733677139e9ebde2a20057421eaa2
(HTM) Author: Wim Stockman <wim@yasendfile.org>
Date: Tue, 14 Mar 2023 16:09:35 +0100
removed the separte Release Page
included it in the refs page
Diffstat:
A .gitignore | 1 +
M stagit.c | 18 ++++++------------
2 files changed, 7 insertions(+), 12 deletions(-)
---
(DIR) diff --git a/.gitignore b/.gitignore
@@ -0,0 +1 @@
+*.o
(DIR) diff --git a/stagit.c b/stagit.c
@@ -547,7 +547,6 @@ writeheader(FILE *fp, const char *title)
if (license)
fprintf(fp, " | <a href=\"%sfile/%s.html\">LICENSE</a>",
relpath, license);
- fprintf(fp, " | <a href=\"%sreleases.html\">Releases</a>", relpath);
fputs("</td></tr></table>\n<hr/>\n<div id=\"content\">\n", fp);
}
@@ -1185,9 +1184,12 @@ writerefs(FILE *fp)
char * shorttag = NULL;
shortrepo = strdup(name);
shorttag = strdup(s);
- size_t len = strlen(shortrepo);
- shortrepo[len-4] = 0;
- shorttag = shorttag+1;
+ if (strstr(shortrepo, ".git"))
+ {
+ size_t len = strlen(shortrepo);
+ shortrepo[len-4] = 0;
+ }
+ if (shorttag[0] == 'v') shorttag = shorttag+1;
fprintf(fp, "<a href=\"%ssnapshot/\%s-%s.tar.gz\">%s-%s.tar.gz</a> ", relpath,shortrepo,shorttag,shortrepo,shorttag);
@@ -1434,14 +1436,6 @@ main(int argc, char *argv[])
checkfileerror(fp, "refs.html", 'w');
fclose(fp);
- /* summary page with releases */
- fp = efopen("releases.html", "w");
- writeheader(fp, "Releases");
- writereleases(fp);
- writefooter(fp);
- checkfileerror(fp, "releases.html", 'w');
- fclose(fp);
-
/* Atom feed */
fp = efopen("atom.xml", "w");
writeatom(fp, 1);