diff --git a/stagit.c b/stagit.c index fd9e937..c22cc17 100644 --- a/stagit.c +++ b/stagit.c @@ -507,6 +507,16 @@ printcommitatom(FILE *fp, struct commitinfo *ci) xmlencode(fp, ci->summary, strlen(ci->summary)); fputs("\n", fp); } + fprintf(fp, "", + ci->oid); + + if (ci->author) { + fputs("", fp); + xmlencode(fp, ci->author->name, strlen(ci->author->name)); + fputs("\n", fp); + xmlencode(fp, ci->author->email, strlen(ci->author->email)); + fputs("\n\n", fp); + } fputs("", fp); fprintf(fp, "commit %s\n", ci->oid); @@ -526,13 +536,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci) xmlencode(fp, ci->msg, strlen(ci->msg)); } fputs("\n\n", fp); - if (ci->author) { - fputs("", fp); - xmlencode(fp, ci->author->name, strlen(ci->author->name)); - fputs("\n", fp); - xmlencode(fp, ci->author->email, strlen(ci->author->email)); - fputs("\n\n", fp); - } + fputs("\n", fp); }