Merge branch 'lh/range-search'
Lars Hjemli hjemli@gmail.com
Tue, 22 Jun 2010 16:16:24 +0200
2 files changed,
8 insertions(+),
4 deletions(-)
M
ui-log.c
→
ui-log.c
@@ -149,10 +149,13 @@ tip = ctx.qry.head;
argv[1] = disambiguate_ref(tip); - if (grep && pattern && (!strcmp(grep, "grep") || - !strcmp(grep, "author") || - !strcmp(grep, "committer"))) - argv[argc++] = fmt("--%s=%s", grep, pattern); + if (grep && pattern) { + if (!strcmp(grep, "grep") || !strcmp(grep, "author") || + !strcmp(grep, "committer")) + argv[argc++] = fmt("--%s=%s", grep, pattern); + if (!strcmp(grep, "range")) + argv[1] = pattern; + } if (path) { argv[argc++] = "--";