diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-02-05 00:48:33 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-25 17:16:32 -0800 |
commit | 2bbb28a3ee2f7252de02f5d0db4da79090b4f8fc (patch) | |
tree | fafc4041d7a15e23b86b2505ae29e6292ecae47a /git.rc | |
parent | object-file API: have hash_object_file() take "enum object_type" (diff) | |
download | tgif-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 'git.rc')
0 files changed, 0 insertions, 0 deletions