make author e-mail a link

This commit is contained in:
Hiltjo Posthuma 2015-12-07 18:59:13 +01:00
parent 51ecd71d5f
commit 17f9f53ea0

View file

@ -184,10 +184,13 @@ printcommit(FILE *fp, git_commit *commit)
if ((sig = git_commit_author(commit)) != NULL) {
fprintf(fp, "Author: ");
xmlencode(fp, sig->name, strlen(sig->name));
fprintf(fp, " <");
fprintf(fp, " &lt;<a href=\"mailto:");
xmlencode(fp, sig->email, strlen(sig->email));
fprintf(fp, "&gt;\nDate: ");
fputs("\">", fp);
xmlencode(fp, sig->email, strlen(sig->email));
fputs("</a>&gt;\nDate: ", fp);
printtime(fp, &sig->when);
fputc('\n', fp);
}
fputc('\n', fp);