summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2023-10-01 21:40:20 -0500
committerJunio C Hamano <gitster@pobox.com>2023-10-02 14:57:39 -0700
commitc8762c30df5b5c0a2a91e14e77cfc94b459d089b (patch)
treeaa2474cb31cecc289f38045251cc20e7dc0ccf80 /builtin/commit.c
parent33a14e81ae0673f8b3f7cf85168c7c573fa2fb58 (diff)
object-file-convert: convert tag objects when writing
When writing a tag object in a repository with both SHA-1 and SHA-256, we'll need to convert our commit objects so that we can write the hash values for both into the repository. To do so, let's add a function to convert tag objects. Note that signatures for tag objects in the current algorithm trail the message, and those for the alternate algorithm are in headers. Therefore, we parse the tag object for both a trailing signature and a header and then, when writing the other format, swap the two around. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions