commit 463a997a86a550c63cfa3b30f04b8e4e6280721d from: Klemens Nanni date: Sun Dec 08 22:15:40 2019 UTC got: start_commit and search_pattern ought to be const Revert the last accidential revert; sorry for the noise, I fat fingered got commands while juggling diffs. commit - 022fae89eee20051d352d3dc2b8c64486bdafe93 commit + 463a997a86a550c63cfa3b30f04b8e4e6280721d blob - 1887fafe21f18bb64e456a7b9c9947b27b4572f2 blob + 7d9545d6203fb071fb75093f09629e812f99a53b --- got/got.c +++ got/got.c @@ -1732,8 +1732,9 @@ print_commit(struct got_commit_object *commit, struct 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; @@ -1839,7 +1840,7 @@ cmd_log(int argc, char *argv[]) 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;