commit - c6390436cb9081c47110b2d06e4c6aa85425a82d
commit + 45e9b85069d0792a229da80e91926b903eca522b
blob - 756eaa2ea3216dabe5aaf7080a2c652fdbfd0f74
blob + 05082c930d13a7655bc6fc626fa862a3c4f8adeb
--- got/got.c
+++ got/got.c
static const struct got_error *
print_commits(struct got_object_id *root_id, struct got_repository *repo,
- char *path, int show_patch, char *search_pattern, int diff_context,
- int limit, int first_parent_traversal, struct got_reflist_head *refs)
+ const char *path, int show_patch, const char *search_pattern,
+ int diff_context, int limit, int first_parent_traversal,
+ struct got_reflist_head *refs)
{
const struct got_error *err;
struct got_commit_graph *graph;
struct got_commit_object *commit = NULL;
struct got_object_id *id = NULL;
char *repo_path = NULL, *path = NULL, *cwd = NULL, *in_repo_path = NULL;
- char *start_commit = NULL, *search_pattern = NULL;
+ const char *start_commit = NULL, *search_pattern = NULL;
int diff_context = -1, ch;
int show_patch = 0, limit = 0, first_parent_traversal = 0;
const char *errstr;