Commit ede67fd961d6b96051fba65c4207f52ae8f124b0

Stefan Sperling 2018-07-10T23:32:29

remove empty line from commit diff output

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/diff.c b/lib/diff.c
index 8fc337d..2beea41 100644
--- a/lib/diff.c
+++ b/lib/diff.c
@@ -577,7 +577,7 @@ got_diff_objects_as_commits(struct got_object *obj1, struct got_object *obj2,
 		err = got_error_from_errno();
 		goto done;
 	}
-	if (fprintf(outfile, "\n%s\n", commit2->logmsg) < 0) {
+	if (fprintf(outfile, "%s\n", commit2->logmsg) < 0) {
 		err = got_error_from_errno();
 		goto done;
 	}