diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-01-12 20:18:00 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-12 22:04:41 (GMT) |
commit | f5d79bf7dd6996b96009ac63b350aa047f2d9959 (patch) | |
tree | 90f3d3f39a2e48de0390a6fc8aea45b11c57d13e /t/t1412-reflog-loop.sh | |
parent | 3373518cc8bd0916581ccfd4a2ee9682d61a8874 (diff) | |
download | git-f5d79bf7dd6996b96009ac63b350aa047f2d9959.zip git-f5d79bf7dd6996b96009ac63b350aa047f2d9959.tar.gz git-f5d79bf7dd6996b96009ac63b350aa047f2d9959.tar.bz2 |
tests: refactor a few tests to use "test_commit --append"
Refactor a few more tests to use the new "--append" option to
"test_commit". I added it for use in the mailmap tests, but this
demonstrates how useful it is in general.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1412-reflog-loop.sh')
-rwxr-xr-x | t/t1412-reflog-loop.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/t/t1412-reflog-loop.sh b/t/t1412-reflog-loop.sh index 3acd895..977603f 100755 --- a/t/t1412-reflog-loop.sh +++ b/t/t1412-reflog-loop.sh @@ -4,11 +4,8 @@ test_description='reflog walk shows repeated commits again' . ./test-lib.sh test_expect_success 'setup commits' ' - test_tick && - echo content >file && git add file && git commit -m one && - git tag one && - echo content >>file && git add file && git commit -m two && - git tag two + test_commit one file content && + test_commit --append two file content ' test_expect_success 'setup reflog with alternating commits' ' |