commit f2915494576059c378cf5dcc8ee39e8d3e060b85 from: Tracey Emery date: Wed Jan 15 22:10:31 2020 UTC move match_logmsg to gw_match_logmsg commit - 3468a5fa92072c498186c4e8e12d0742a73442dc commit + f2915494576059c378cf5dcc8ee39e8d3e060b85 blob - 7c1995239e9ee00725babf091b6df8abc9a5f02d blob + 90724925e552c0df84da661bd8fc4a5d695f35c8 --- gotweb/gotweb.c +++ gotweb/gotweb.c @@ -185,7 +185,7 @@ static const struct got_error* gw_load_got_paths(stru static const struct got_error* gw_load_got_path(struct gw_trans *, struct gw_dir *); static const struct got_error* gw_parse_querystring(struct gw_trans *); -static const struct got_error* match_logmsg(int *, struct got_object_id *, +static const struct got_error* gw_match_logmsg(int *, struct got_object_id *, struct got_commit_object *, regex_t *); static const struct got_error* gw_blame(struct gw_trans *); @@ -968,7 +968,7 @@ gw_init_gw_dir(char *dir) } static const struct got_error* -match_logmsg(int *have_match, struct got_object_id *id, +gw_match_logmsg(int *have_match, struct got_object_id *id, struct got_commit_object *commit, regex_t *regex) { const struct got_error *err = NULL; @@ -1607,7 +1607,7 @@ gw_get_repo_log(struct gw_trans *gw_trans, const char break; if (search_pattern) { - error = match_logmsg(&have_match, id1, commit, + error = gw_match_logmsg(&have_match, id1, commit, ®ex); if (error) { got_object_commit_close(commit);