]> git.ipfire.org Git - thirdparty/git.git/commit - revision.c
git log: Unify header_filter and message_filter into one.
authorJunio C Hamano <junkio@cox.net>
Wed, 20 Sep 2006 20:21:56 +0000 (13:21 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 20 Sep 2006 20:21:56 +0000 (13:21 -0700)
commit2d10c555374df257e32848ba6f77fd73d608645f
treea7f79460ed2f1fad1cd87694b9d80b23219eb669
parent480c1ca6fd8df58a783e231648b489ed2bfd17f1
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>
builtin-rev-list.c
revision.c
revision.h