]> git.ipfire.org Git - thirdparty/git.git/commit
t6500: use "ls -1" to snapshot ref database state
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 2 Aug 2021 16:53:35 +0000 (16:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Aug 2021 20:17:21 +0000 (13:17 -0700)
commitf95661b74088f019847ee8408c8ce82012089e2e
treee967ffe53d8d1be4136f323a27a47a1db0f82146
parent2cf9f0fca1ad0fedb88f63f59b311b4d80b28f0e
t6500: use "ls -1" to snapshot ref database state

By doing ls -1 .git/{reftable,refs/heads}, we can capture changes to both
reftable and packed/loose ref storage.

This relies on the fact that git-pack-refs (which we're looking for here)
changes the number (loose/packed storage) and/or names (reftable) files used for
ref storage.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6500-gc.sh