Commit Diff


commit - abd2672ad512810199886aa5cc285df04f1aed67
commit + 56765ebba6f171b02b9c44abb6013d5d62ced841
blob - 621183d6bb2b52b796e1309ca2e05ea2f4f986cc
blob + 7cd07bd20aca71218aee61ff7af64ff3311955a5
--- got/got.c
+++ got/got.c
@@ -331,7 +331,7 @@ print_patch(struct got_commit_object *commit, struct g
 	if (err)
 		goto done;
 
-	printf("diff: %s %s\n", id_str1 ? id_str1 : "/dev/null", id_str2);
+	printf("diff %s %s\n", id_str1 ? id_str1 : "/dev/null", id_str2);
 	err = got_diff_tree(tree1, tree2, "", "", diff_context, repo, stdout);
 done:
 	if (tree1)
@@ -698,7 +698,7 @@ cmd_diff(int argc, char *argv[])
 		    diff_context, repo, stdout);
 		break;
 	case GOT_OBJ_TYPE_COMMIT:
-		printf("diff: %s %s\n", obj_id_str1 ? obj_id_str1 : "/dev/null",
+		printf("diff %s %s\n", obj_id_str1 ? obj_id_str1 : "/dev/null",
 		    obj_id_str2);
 		error = got_diff_objects_as_commits(obj1, obj2, diff_context,
 		    repo, stdout);
blob - c21e546facbc0df97f2f54e6ac9a85a7bf04756b
blob + b0d09c8faf17ad7edf5ea5b89ac54e6fab5b77d6
--- tog/tog.c
+++ tog/tog.c
@@ -2012,7 +2012,7 @@ show_diff_view(struct tog_view *view)
 	if (err)
 		return err;
 
-	if (asprintf(&header, "diff: %s %s",
+	if (asprintf(&header, "diff %s %s",
 	    id_str1 ? id_str1 : "/dev/null", id_str2) == -1) {
 		err = got_error_from_errno();
 		free(id_str1);