3 test_description
='git log with filter options limiting the output'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'setup test' '
12 GIT_COMMITTER_DATE="2021-02-01 00:00" git commit -m init &&
15 GIT_COMMITTER_DATE="2022-02-01 00:00" git commit -m first &&
18 GIT_COMMITTER_DATE="2021-03-01 00:00" git commit -m second &&
21 GIT_COMMITTER_DATE="2022-03-01 00:00" git commit -m third
24 test_expect_success
'git log --since-as-filter=...' '
25 git log --since-as-filter="2022-01-01" --format=%s >actual &&
26 cat >expect <<-\EOF &&
30 test_cmp expect actual
33 test_expect_success
'git log --children --since-as-filter=...' '
34 git log --children --since-as-filter="2022-01-01" --format=%s >actual &&
35 cat >expect <<-\EOF &&
39 test_cmp expect actual