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>
This commit is contained in:
Junio C Hamano
2006-09-20 13:21:56 -07:00
parent 480c1ca6fd
commit 2d10c55537
3 changed files with 28 additions and 55 deletions

View File

@ -72,8 +72,7 @@ struct rev_info {
const char *extra_headers;
/* Filter by commit log message */
struct grep_opt *header_filter;
struct grep_opt *message_filter;
struct grep_opt *grep_filter;
/* special limits */
int max_count;