summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Matthieu Moy <Matthieu.Moy@imag.fr>2010-08-05 10:22:55 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-06 09:14:44 -0700
commit7d7b86f75f01cd4a491dbf0170ba36806dacb1c5 (patch)
treeb2b866be5bd505be9f6422e6f56b945581c08897 /t
parentdiff: parse separate options --stat-width n, --stat-name-width n (diff)
downloadtgif-7d7b86f75f01cd4a491dbf0170ba36806dacb1c5.tar.xz
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')
-rwxr-xr-xt/t4202-log.sh7
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 &&