Commit 971751acb8de104ac2f61c202957aeb727ef85fb

Stefan Sperling 2018-03-27T23:20:50

make log -p print an extra newline after diff

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/got/got.c b/got/got.c
index d519a17..36ae90e 100644
--- a/got/got.c
+++ b/got/got.c
@@ -295,8 +295,11 @@ print_commit(struct got_commit_object *commit, struct got_object_id *id,
 	printf("Author: %s\n", commit->author);
 	printf("\n%s\n", commit->logmsg);
 
-	if (show_patch)
+	if (show_patch) {
 		err = print_patch(commit, id, repo);
+		if (err == 0)
+			printf("\n");
+	}
 
 	free(buf);
 	return err;