aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--cgit.h3
-rw-r--r--ui-log.c6
-rw-r--r--ui-repolist.c3
-rw-r--r--ui-shared.c13
-rw-r--r--ui-summary.c2
-rw-r--r--ui-tree.c2
6 files changed, 8 insertions, 21 deletions
diff --git a/cgit.h b/cgit.h
index 163f355..42036c3 100644
--- a/cgit.h
+++ b/cgit.h
@@ -238,8 +238,7 @@ extern const char *cgit_repobasename(const char *reponame);
extern void cgit_tree_link(char *name, char *title, char *class, char *head,
char *rev, char *path);
extern void cgit_log_link(char *name, char *title, char *class, char *head,
- char *rev, char *path, int ofs, char *grep,
- char *pattern);
+ char *rev, char *path, int ofs);
extern void cgit_commit_link(char *name, char *title, char *class, char *head,
char *rev);
extern void cgit_refs_link(char *name, char *title, char *class, char *head,
diff --git a/ui-log.c b/ui-log.c
index 9f5fdf6..e7f7d6f 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -118,15 +118,13 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
if (ofs > 0) {
cgit_log_link("[prev]", NULL, NULL, cgit_query_head,
cgit_query_sha1, cgit_query_path,
- ofs - cnt, cgit_query_grep,
- cgit_query_search);
+ ofs - cnt);
html(" ");
}
if ((commit = get_revision(&rev)) != NULL) {
cgit_log_link("[next]", NULL, NULL, cgit_query_head,
cgit_query_sha1, cgit_query_path,
- ofs + cnt, cgit_query_grep,
- cgit_query_search);
+ ofs + cnt);
}
html("</div>");
}
diff --git a/ui-repolist.c b/ui-repolist.c
index 9aa5c1e..4c86543 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -98,8 +98,7 @@ void cgit_print_repolist(struct cacheitem *item)
html_link_open(cgit_repourl(cgit_repo->url),
NULL, "button");
html("summary</a>");
- cgit_log_link("log", NULL, "button", NULL, NULL, NULL,
- 0, NULL, NULL);
+ cgit_log_link("log", NULL, "button", NULL, NULL, NULL, 0);
cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL);
html("</td>");
}
diff --git a/ui-shared.c b/ui-shared.c
index a03661a..1d66940 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -194,7 +194,7 @@ void cgit_tree_link(char *name, char *title, char *class, char *head,
}
void cgit_log_link(char *name, char *title, char *class, char *head,
- char *rev, char *path, int ofs, char *grep, char *pattern)
+ char *rev, char *path, int ofs)
{
char *delim;
@@ -205,15 +205,6 @@ void cgit_log_link(char *name, char *title, char *class, char *head,
html_attr(rev);
delim = "&";
}
- if (grep && pattern) {
- html(delim);
- html("qt=");
- html_attr(grep);
- delim = "&";
- html(delim);
- html("q=");
- html_attr(pattern);
- }
if (ofs > 0) {
html(delim);
html("ofs=");
@@ -470,7 +461,7 @@ void cgit_print_pageheader(char *title, int show_search)
reporevlink(NULL, "summary", NULL, "menu", cgit_query_head,
NULL, NULL);
cgit_log_link("log", NULL, "menu", cgit_query_head,
- cgit_query_sha1, cgit_query_path, 0, NULL, NULL);
+ cgit_query_sha1, cgit_query_path, 0);
cgit_tree_link("tree", NULL, "menu", cgit_query_head,
cgit_query_sha1, NULL);
cgit_commit_link("commit", NULL, "menu", cgit_query_head,
diff --git a/ui-summary.c b/ui-summary.c
index c856793..39fe330 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -56,7 +56,7 @@ static int print_branch(struct refinfo *ref)
if (!info)
return 1;
html("<tr><td>");
- cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0, NULL, NULL);
+ cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0);
html("</td><td>");
if (ref->object->type == OBJ_COMMIT) {
diff --git a/ui-tree.c b/ui-tree.c
index c22e30b..d6bcec3 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -100,7 +100,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
html("<td>");
cgit_log_link("log", NULL, "button", cgit_query_head, curr_rev,
- fullpath, 0, NULL, NULL);
+ fullpath, 0);
html("</td></tr>\n");
free(name);
return 0;