]> git.ipfire.org Git - thirdparty/git.git/commit
object-file.c: add a literal version of write_object_file_prepare()
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 4 Feb 2022 23:48:33 +0000 (00:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Feb 2022 01:16:32 +0000 (17:16 -0800)
commit2bbb28a3ee2f7252de02f5d0db4da79090b4f8fc
treefafc4041d7a15e23b86b2505ae29e6292ecae47a
parent44439c1c5827480f68b37c3cc38f257eaeb3ed2c
object-file.c: add a literal version of write_object_file_prepare()

Split off a *_literally() variant of the write_object_file_prepare()
function. To do this create a new "hash_object_body()" static helper.

We now defer the type_name() call until the very last moment in
format_object_header() for those callers that aren't "hash-object
--literally".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c