commit 72d971c439ed5038b44427421cc3529ed6420ea7
parent 67dc0e3b64a5ba41b921e64d6350d377f7a3da0b
Author: Michael Skec
Date: Sat, 11 Nov 2023 15:38:33 +1100
Remove tags feed
Currently useless as I don't really have a proper releases system set
up, and no actual releases of anything quite yet.
Diffstat:
M | stagit.c | | | 26 | +++++++++++++------------- |
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -520,9 +520,9 @@ writeheader(FILE *fp, const char *title)
fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp);
xmlencode(fp, name, strlen(name));
fprintf(fp, " Atom Feed\" href=\"%satom.xml\" />\n", relpath);
- fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp);
- xmlencode(fp, name, strlen(name));
- fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath);
+ //fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp);
+ //xmlencode(fp, name, strlen(name));
+ //fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath);
fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
fputs("</head>\n<body>\n<table id=\"headertable\"><tr><td class=\"headerlink\">", fp);
#if LOGO
@@ -624,7 +624,7 @@ writeblobhtml(FILE *fp, const git_blob *blob)
{
/* Line numbers */
fputs("<td id=\"linenumbers\"><pre>", fp);
- for (i = 0, prev = 0; i < len; i++)
+ for (i = 0, prev = 0; i < len; i++)
{
if (s[i] != '\n')
continue;
@@ -634,18 +634,18 @@ writeblobhtml(FILE *fp, const git_blob *blob)
prev = i + 1;
}
/* trailing data */
- if ((len - prev) > 0)
+ if ((len - prev) > 0)
{
n++;
fprintf(fp, nfmt, n, n, n);
}
fputs("</pre></td>", fp);
-
+
n = 0;
/* Lines */
fputs("<td id=\"lines\"><pre>", fp);
- for (i = 0, prev = 0; i < len; i++)
+ for (i = 0, prev = 0; i < len; i++)
{
if (s[i] != '\n')
continue;
@@ -655,7 +655,7 @@ writeblobhtml(FILE *fp, const git_blob *blob)
prev = i + 1;
}
/* trailing data */
- if ((len - prev) > 0)
+ if ((len - prev) > 0)
{
n++;
xmlencodeline(fp, &s[prev], len - prev);
@@ -1492,11 +1492,11 @@ main(int argc, char *argv[])
checkfileerror(fp, "atom.xml", 'w');
fclose(fp);
- /* Atom feed for tags / releases */
- fp = efopen("tags.xml", "w");
- writeatom(fp, 0);
- checkfileerror(fp, "tags.xml", 'w');
- fclose(fp);
+ /* Atom feed for tags / releases (ignored) */
+ //fp = efopen("tags.xml", "w");
+ //writeatom(fp, 0);
+ //checkfileerror(fp, "tags.xml", 'w');
+ //fclose(fp);
/* rename new cache file on success */
if (cachefile && head) {