summaryrefslogtreecommitdiff
path: root/common-main.c
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2022-02-05 00:48:33 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-02-25 17:16:32 -0800
commit2bbb28a3ee2f7252de02f5d0db4da79090b4f8fc (patch)
treefafc4041d7a15e23b86b2505ae29e6292ecae47a /common-main.c
parentobject-file API: have hash_object_file() take "enum object_type" (diff)
downloadtgif-2bbb28a3ee2f7252de02f5d0db4da79090b4f8fc.tar.xz
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>
Diffstat (limited to 'common-main.c')
0 files changed, 0 insertions, 0 deletions