]> git.ipfire.org Git - thirdparty/git.git/commit
t6500: extract objects with "17" prefix
authorPatrick Steinhardt <ps@pks.im>
Mon, 25 Mar 2024 10:03:28 +0000 (11:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 16:54:07 +0000 (09:54 -0700)
commit77257e3c7e342acc0022c8c206db6c248cbfeb85
treeab6dc83898a2273ba525bbc18225b6721e2fe7ab
parent0e05d53992b85cd19ce5f3c5d476ded10e2b63e1
t6500: extract objects with "17" prefix

The ".git/obects/17/" shard is somewhat special because it is used by
git-gc(1) to estimate how many objects there are by extrapolating the
number of objects in that shard, only. In t6500 we thus have a hard
coded set of data that, when written to the object database, result in
blobs starting with that prefix.

We are about to need such "17"-prefixed objects in another test suite.
Extract them into "t/oid-info/hash-info" so that they can be reused by
other tests.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/oid-info/hash-info
t/t6500-gc.sh