tweak log message headers again
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/got/got.c b/got/got.c
index 8349fe9..dc93773 100644
--- a/got/got.c
+++ b/got/got.c
@@ -331,11 +331,11 @@ print_commit(struct got_commit_object *commit, struct got_object_id *id,
printf("-----------------------------------------------\n");
printf("commit %s\n", id_str);
free(id_str);
+ printf("from: %s\n", commit->author);
datestr = get_datestr(&committer_time, datebuf);
- printf("from: %s\n", commit->committer);
printf("date: %s UTC\n", datestr);
if (strcmp(commit->author, commit->committer) != 0)
- printf("original author: %s\n", commit->author);
+ printf("via: %s\n", commit->committer);
if (commit->nparents > 1) {
struct got_object_qid *qid;
int n = 1;
diff --git a/lib/diff.c b/lib/diff.c
index a06d2b0..5355fad 100644
--- a/lib/diff.c
+++ b/lib/diff.c
@@ -610,19 +610,18 @@ got_diff_objects_as_commits(struct got_object *obj1, struct got_object *obj2,
goto done;
}
free(id_str);
- time = mktime(&commit2->tm_author);
if (fprintf(outfile, "from: %s\n", commit2->author) < 0) {
err = got_error_from_errno();
goto done;
}
+ time = mktime(&commit2->tm_committer);
if (fprintf(outfile, "date: %s UTC\n",
get_datestr(&time, datebuf)) < 0) {
err = got_error_from_errno();
goto done;
}
- time = mktime(&commit2->tm_committer);
if (strcmp(commit2->author, commit2->committer) != 0 &&
- fprintf(outfile, "original author: %s\n", commit2->committer) < 0) {
+ fprintf(outfile, "via: %s\n", commit2->committer) < 0) {
err = got_error_from_errno();
goto done;
}