log --grep-reflog: reject the option without -g

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2012-09-29 11:59:52 -07:00
parent 72fd13f71c
commit baa6378ff2
5 changed files with 20 additions and 4 deletions

View File

@ -572,6 +572,10 @@ test_expect_success 'log grep (9)' '
test_cmp expect actual
'
test_expect_success 'log --grep-reflog can only be used under -g' '
test_must_fail git log --grep-reflog="commit: third"
'
test_expect_success 'log with multiple --grep uses union' '
git log --grep=i --grep=r --format=%s >actual &&
{