From 17f9f53ea0406e887516fe61795da970c8ccc17e Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 7 Dec 2015 18:59:13 +0100 Subject: [PATCH] make author e-mail a link --- urmoms.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/urmoms.c b/urmoms.c index db146f4..13c21e2 100644 --- a/urmoms.c +++ b/urmoms.c @@ -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, " <email, strlen(sig->email)); - fprintf(fp, ">\nDate: "); + fputs("\">", fp); + xmlencode(fp, sig->email, strlen(sig->email)); + fputs(">\nDate: ", fp); printtime(fp, &sig->when); + fputc('\n', fp); } fputc('\n', fp); -- libgit2 1.1.1