]> git.ipfire.org Git - thirdparty/git.git/commit
t1400: split up generic reflog tests from the reffile-specific ones
authorPatrick Steinhardt <ps@pks.im>
Wed, 29 Nov 2023 07:24:44 +0000 (08:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Dec 2023 02:50:23 +0000 (11:50 +0900)
commitdb7288b321d5429a6a02b47f27907a519300c6e6
tree43499fc8c9ad42cb00f38a0bd4b1f487e1f31a4f
parent54087dd32be83c47599f39d3a40259e251ed2b8a
t1400: split up generic reflog tests from the reffile-specific ones

We have a bunch of tests in t1400 that check whether we correctly read
reflog entries. These tests create the reflog by manually writing to the
respective loose file, which makes them specific to the files backend.
But while some of them do indeed exercise very specific edge cases in
the reffiles backend, most of the tests exercise generic functionality
that should be common to all backends.

Unfortunately, we can't easily adapt all of the tests to work with all
backends. Instead, split out the reffile-specific tests from the ones
that should work with all backends and refactor the generic ones to not
write to the on-disk files directly anymore.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1400-update-ref.sh