summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-20 20:21:56 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-20 20:21:56 (GMT)
commit2d10c555374df257e32848ba6f77fd73d608645f (patch)
treea7f79460ed2f1fad1cd87694b9d80b23219eb669 /builtin-rev-list.c
parent480c1ca6fd8df58a783e231648b489ed2bfd17f1 (diff)
downloadgit-2d10c555374df257e32848ba6f77fd73d608645f.zip
git-2d10c555374df257e32848ba6f77fd73d608645f.tar.gz
git-2d10c555374df257e32848ba6f77fd73d608645f.tar.bz2
git log: Unify header_filter and message_filter into one.
Now we can tell the built-in grep to grep only in head or in body, use that to update --author, --committer, and --grep. Unfortunately, to make --and, --not and other grep boolean expressions useful, as in: # Things written by Junio committed and by Linus and log # does not talk about diff. git log --author=Junio --and --committer=Linus \ --grep-not --grep=diff we will need to do another round of built-in grep core enhancement, because grep boolean expressions are designed to work on one line at a time. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index dbfee75..fb7fc92 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -269,9 +269,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
revs.diff)
usage(rev_list_usage);
- save_commit_buffer = revs.verbose_header ||
- revs.header_filter ||
- revs.message_filter;
+ save_commit_buffer = revs.verbose_header || revs.grep_filter;
track_object_refs = 0;
if (bisect_list)
revs.limited = 1;