stagit
Personal fork of stagit
git clone git://mccd.space/stagitcommit 1c6f46ee8c850397d261ce569b64d0af7daeed49
parent 42346522421c4c038e314078e9aa6b6aa8e329f9
Author: Marc <marc@coquand.email>
Date: Tue, 7 Jul 2026 16:34:46 +0200
Change order
Diffstat:
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -528,13 +528,6 @@ writeheader(FILE *fp, const char *title)
fputs("</h1><p class=\"desc\">", fp);
xmlencode(fp, description, strlen(description));
fputs("</p>", fp);
- if (cloneurl[0]) {
- fputs("<p class=\"url\">git clone <a href=\"", fp);
- xmlencode(fp, cloneurl, strlen(cloneurl)); /* not percent-encoded */
- fputs("\">", fp);
- xmlencode(fp, cloneurl, strlen(cloneurl));
- fputs("</a></p>", fp);
- }
if (contrib[0]) {
fputs("<p class=\"contribute\">Contribute: <a href=\"", fp);
{ size_t ci;
@@ -545,7 +538,15 @@ writeheader(FILE *fp, const char *title)
fputs("\">", fp);
xmlencode(fp, contrib, strlen(contrib));
fputs("</a></p>", fp);
- }
+ }
+ if (cloneurl[0]) {
+ fputs("<p class=\"url\">git clone <a href=\"", fp);
+ xmlencode(fp, cloneurl, strlen(cloneurl)); /* not percent-encoded */
+ fputs("\">", fp);
+ xmlencode(fp, cloneurl, strlen(cloneurl));
+ fputs("</a></p>", fp);
+ }
+
fputs("<table><tbody><tr><td id=\"links\">\n", fp);
fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath);
fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath);