]> git.ipfire.org Git - thirdparty/git.git/commit - object-file.c
object-file: add a compat_oid_in parameter to write_object_file_flags
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 2 Oct 2023 02:40:12 +0000 (21:40 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2023 21:57:39 +0000 (14:57 -0700)
commitc2538492df8259885abc18acdadacc22b1e77e5a
tree3864dd7a5963aa3c23a4a3f1487d7183359842d2
parent63a6745a07c2202d16d580156661d42e00b9762f
object-file: add a compat_oid_in parameter to write_object_file_flags

To create the proper signatures for commit objects both versions of
the commit object need to be generated and signed.  After that it is
a waste to throw away the work of generating the compatibility hash
so update write_object_file_flags to take a compatibility hash input
parameter that it can use to skip the work of generating the
compatability hash.

Update the places that don't generate the compatability hash to
pass NULL so it is easy to tell write_object_file_flags should
not attempt to use their compatability hash.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c
object-file.c
object-store-ll.h