mirror of
https://git.zx2c4.com/cgit
synced 2025-07-15 04:34:33 +02:00
Teach log search about --grep, --author and --committer
This makes the log searching more explicit, using a dropdown box to specify the commit field to match against. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
6ec5f36f27
commit
68ca032dbe
7 changed files with 40 additions and 10 deletions
3
shared.c
3
shared.c
|
@ -54,6 +54,7 @@ char *cgit_query_repo = NULL;
|
|||
char *cgit_query_page = NULL;
|
||||
char *cgit_query_head = NULL;
|
||||
char *cgit_query_search = NULL;
|
||||
char *cgit_query_grep = NULL;
|
||||
char *cgit_query_sha1 = NULL;
|
||||
char *cgit_query_sha2 = NULL;
|
||||
char *cgit_query_path = NULL;
|
||||
|
@ -232,6 +233,8 @@ void cgit_querystring_cb(const char *name, const char *value)
|
|||
cgit_cmd = cgit_get_cmd_index(value);
|
||||
} else if (!strcmp(name, "url")) {
|
||||
cgit_parse_url(value);
|
||||
} else if (!strcmp(name, "qt")) {
|
||||
cgit_query_grep = xstrdup(value);
|
||||
} else if (!strcmp(name, "q")) {
|
||||
cgit_query_search = xstrdup(value);
|
||||
} else if (!strcmp(name, "h")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue