Commit Diff


commit - e02e74afec955012935260a66e7710c537092c95
commit + cd628e99c08eeaced7aae9654bb9d42c54b7dd8a
blob - 98337ea5b20ae8e72e86440f5fd182320d90980d
blob + 8b10e2b76eb3c8ecd84931d68a1fdacc4a5dfb5e
--- got/got.c
+++ got/got.c
@@ -1251,7 +1251,7 @@ cmd_diff(int argc, char *argv[])
 	struct got_worktree *worktree = NULL;
 	char *cwd = NULL, *repo_path = NULL;
 	struct got_object_id *id1 = NULL, *id2 = NULL;
-	char *id_str1 = NULL, *id_str2 = NULL;
+	const char *id_str1 = NULL, *id_str2 = NULL;
 	int type1, type2;
 	int diff_context = 3, ch;
 	const char *errstr;