summaryrefslogtreecommitdiff
path: root/ui-log.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui-log.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/ui-log.c b/ui-log.c
index f3b16e7..c353b2a 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -32,19 +32,26 @@ void print_commit(struct commit *commit)
}
-void cgit_print_log(const char *tip, int ofs, int cnt)
+void cgit_print_log(const char *tip, int ofs, int cnt, char *grep)
{
struct rev_info rev;
struct commit *commit;
- const char *argv[2] = {NULL, tip};
+ const char *argv[3] = {NULL, tip, NULL};
+ int argc = 2;
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(2, argv, &rev, NULL);
+ setup_revisions(argc, argv, &rev, NULL);
+ if (rev.grep_filter) {
+ rev.grep_filter->regflags |= REG_ICASE;
+ compile_grep_patterns(rev.grep_filter);
+ }
prepare_revision_walk(&rev);
html("<h2>Log</h2>");
ighlight'> "dev-vcs/git" to follow new Gentoo portage tree modifications 2010-04-14Make some useless info messages being debug statementsRené 'Necoro' Neumann2-34/+17 2010-04-14Improve the C modulesRené 'Necoro' Neumann3-37/+52 2010-04-14Small modifications made to the French translation (typos, grammar).Clement Bourgeois1-69/+69 2010-04-14Fixed the unicode support and stuff ... and also made eix faster :)René 'Necoro' Neumann1-20/+22 2010-04-14Disable debug messages by defaultRené 'Necoro' Neumann1-1/+1 2010-04-13Better eix error inheritance and handlingRené 'Necoro' Neumann1-2/+9 2010-04-13Fix the handling of FilterSets. Fixes bug #558887.René 'Necoro' Neumann2-56/+64 Now FilterSets are a subclass of InstalledSet. And return only these packages, which are installed ... but then all of them. 2010-04-12Updated newsRené 'Necoro' Neumann1-0/+1 2010-04-13Added my name to translators list.Clement Bourgeois1-0/+1