Commit: cdb8a2e075ed2b427d0e2165689a3563642cefe0
Parent: 5e0b02d248653b1434c3317f1654cb5c6f011320
Author: Randy Palamar
Date: Sat, 4 Nov 2023 10:17:01 -0600
stagit: don't print emails anywhere
to cut down on spam the repo will need to be cloned to view that info
Diffstat:
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -602,11 +602,7 @@ printcommit(FILE *fp, struct commitinfo *ci)
if (ci->author) {
fputs("<b>Author:</b> ", fp);
xmlencode(fp, ci->author->name, strlen(ci->author->name));
- fputs(" <<a href=\"mailto:", fp);
- xmlencode(fp, ci->author->email, strlen(ci->author->email)); /* not percent-encoded */
- fputs("\">", fp);
- xmlencode(fp, ci->author->email, strlen(ci->author->email));
- fputs("</a>>\n<b>Date:</b> ", fp);
+ fputs("\n<b>Date:</b> ", fp);
printtime(fp, &(ci->author->when));
putc('\n', fp);
}
@@ -875,9 +871,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag)
if (ci->author) {
fputs("<author>\n<name>", fp);
xmlencode(fp, ci->author->name, strlen(ci->author->name));
- fputs("</name>\n<email>", fp);
- xmlencode(fp, ci->author->email, strlen(ci->author->email));
- fputs("</email>\n</author>\n", fp);
+ fputs("</name>\n</author>\n", fp);
}
fputs("<content>", fp);
@@ -887,9 +881,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag)
if (ci->author) {
fputs("Author: ", fp);
xmlencode(fp, ci->author->name, strlen(ci->author->name));
- fputs(" <", fp);
- xmlencode(fp, ci->author->email, strlen(ci->author->email));
- fputs(">\nDate: ", fp);
+ fputs("\nDate: ", fp);
printtime(fp, &(ci->author->when));
putc('\n', fp);
}