Commit f3d135e1a7b128a08779821373b391fa04493ad5

Stefan Sperling 2018-04-01T23:10:38

make 'got log' show the committer if different from author

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 952e0f2..235c725 100644
--- a/got/got.c
+++ b/got/got.c
@@ -315,6 +315,8 @@ print_commit(struct got_commit_object *commit, struct got_object_id *id,
 	printf("-----------------------------------------------\n");
 	printf("commit: %s\n", buf);
 	printf("Author: %s\n", commit->author);
+	if (strcmp(commit->author, commit->committer) != 0)
+		printf("Committer: %s\n", commit->committer);
 	printf("\n%s\n", commit->logmsg);
 
 	if (show_patch) {