stagit

static git page generator  https://git.ce9e.org
git clone https://git.ce9e.org/stagit.git

commit
72595cb5c729aaf72f9136610cc8fdf108f1aa25
parent
be92e0fad7ab1122b2bcb840e75e723433bf5c33
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-03-26 17:09
include only commit message in atom content

Diffstat

M stagit.c 18 +++---------------

1 files changed, 3 insertions, 15 deletions


diff --git a/stagit.c b/stagit.c

@@ -661,24 +661,12 @@ printcommitatom(FILE *fp, struct commitinfo *ci)
  661   661 		fputs("</email>\n</author>\n", fp);
  662   662 	}
  663   663 
  664    -1 	fputs("<content type=\"text\">", fp);
  665    -1 	fprintf(fp, "commit %s\n", ci->oid);
  666    -1 	if (ci->parentoid[0])
  667    -1 		fprintf(fp, "parent %s\n", ci->parentoid);
  668    -1 	if (ci->author) {
  669    -1 		fputs("Author: ", fp);
  670    -1 		xmlencode(fp, ci->author->name, strlen(ci->author->name));
  671    -1 		fputs(" &lt;", fp);
  672    -1 		xmlencode(fp, ci->author->email, strlen(ci->author->email));
  673    -1 		fputs("&gt;\nDate:   ", fp);
  674    -1 		printtimeshort(fp, &(ci->author->when));
  675    -1 		fputc('\n', fp);
  676    -1 	}
  677   664 	if (ci->msg) {
  678    -1 		fputc('\n', fp);
   -1   665 		fputs("<content type=\"text\">\n", fp);
  679   666 		xmlencode(fp, ci->msg, strlen(ci->msg));
   -1   667 		fputs("\n</content>\n", fp);
  680   668 	}
  681    -1 	fputs("\n</content>\n</entry>\n", fp);
   -1   669 	fputs("</entry>\n", fp);
  682   670 }
  683   671 
  684   672 int