3 test_description
='git log with filter options limiting the output'
7 test_expect_success
'setup test' '
11 GIT_COMMITTER_DATE="2021-02-01 00:00" git commit -m init &&
14 GIT_COMMITTER_DATE="2022-02-01 00:00" git commit -m first &&
17 GIT_COMMITTER_DATE="2021-03-01 00:00" git commit -m second &&
20 GIT_COMMITTER_DATE="2022-03-01 00:00" git commit -m third
23 test_expect_success
'git log --since-as-filter=...' '
24 git log --since-as-filter="2022-01-01" --format=%s >actual &&
25 cat >expect <<-\EOF &&
29 test_cmp expect actual
32 test_expect_success
'git log --children --since-as-filter=...' '
33 git log --children --since-as-filter="2022-01-01" --format=%s >actual &&
34 cat >expect <<-\EOF &&
38 test_cmp expect actual