remove colon from diff header
diff --git a/got/got.c b/got/got.c
index 621183d..7cd07bd 100644
--- a/got/got.c
+++ b/got/got.c
@@ -331,7 +331,7 @@ print_patch(struct got_commit_object *commit, struct got_object_id *id,
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);
diff --git a/tog/tog.c b/tog/tog.c
index c21e546..b0d09c8 100644
--- a/tog/tog.c
+++ b/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);