]> git.ipfire.org Git - thirdparty/git.git/commit
t: add lib-loose.sh
authorJeff King <peff@peff.net>
Fri, 16 May 2025 04:50:02 +0000 (00:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 May 2025 16:43:11 +0000 (09:43 -0700)
commitb5643b60acb71e3c117558b37020a8db8fe17c69
treef1074814b24ddf8bc768ea65aa08330822ef3216
parentf2ed511a2f8f7339e21e4f2792ebe230e92dd669
t: add lib-loose.sh

This commit adds a shell library for writing raw loose objects into the
object database. Normally this is done with hash-object, but the
specific intent here is to allow broken objects that hash-object may not
support.

We'll convert several cases that use "hash-object --literally" to write
objects with invalid types. That works currently, but dropping this
dependency will allow us to remove that feature and simplify the
object-writing code.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-loose.sh [new file with mode: 0644]
t/t1006-cat-file.sh
t/t1450-fsck.sh
t/t1512-rev-parse-disambiguation.sh