aboutsummaryrefslogtreecommitdiff
path: root/ui-log.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-log.c')
-rw-r--r--ui-log.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/ui-log.c b/ui-log.c
index c353b2a..f3b16e7 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -32,26 +32,19 @@ void print_commit(struct commit *commit)
}
-void cgit_print_log(const char *tip, int ofs, int cnt, char *grep)
+void cgit_print_log(const char *tip, int ofs, int cnt)
{
struct rev_info rev;
struct commit *commit;
- const char *argv[3] = {NULL, tip, NULL};
- int argc = 2;
+ const char *argv[2] = {NULL, tip};
int i;
- if (grep)
- argv[argc++] = fmt("--grep=%s", grep);
init_revisions(&rev, NULL);
rev.abbrev = DEFAULT_ABBREV;
rev.commit_format = CMIT_FMT_DEFAULT;
rev.verbose_header = 1;
rev.show_root_diff = 0;
- setup_revisions(argc, argv, &rev, NULL);
- if (rev.grep_filter) {
- rev.grep_filter->regflags |= REG_ICASE;
- compile_grep_patterns(rev.grep_filter);
- }
+ setup_revisions(2, argv, &rev, NULL);
prepare_revision_walk(&rev);
html("<h2>Log</h2>");