From baa6378ff2106738c74213280904507d0ed8129c Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 29 Sep 2012 11:59:52 -0700 Subject: log --grep-reflog: reject the option without -g Signed-off-by: Junio C Hamano --- t/t7810-grep.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't') diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index 3a5d0fd770..f698001c99 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -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 && { -- cgit v1.2.1