diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2010-08-05 10:22:55 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-06 09:14:44 -0700 |
commit | 7d7b86f75f01cd4a491dbf0170ba36806dacb1c5 (patch) | |
tree | b2b866be5bd505be9f6422e6f56b945581c08897 /t/t4202-log.sh | |
parent | 1e57208ef0e48d1d852679a72d3128da333d028d (diff) | |
download | git-7d7b86f75f01cd4a491dbf0170ba36806dacb1c5.tar.gz |
log: parse separate options like git log --grep foo
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4202-log.sh')
-rwxr-xr-x | t/t4202-log.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t4202-log.sh b/t/t4202-log.sh index c1abd311dc..95ac3f8cc8 100755 --- a/t/t4202-log.sh +++ b/t/t4202-log.sh @@ -201,6 +201,13 @@ test_expect_success 'log --grep' ' test_cmp expect actual ' +test_expect_success 'log --grep option parsing' ' + echo second >expect && + git log -1 --pretty="tformat:%s" --grep sec >actual && + test_cmp expect actual && + test_must_fail git log -1 --pretty="tformat:%s" --grep +' + test_expect_success 'log -i --grep' ' echo Second >expect && git log -1 --pretty="tformat:%s" -i --grep=sec >actual && |