summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2023-10-01 21:40:15 -0500
committerJunio C Hamano <gitster@pobox.com>2023-10-02 14:57:39 -0700
commit6bcc5fa20d960c86a58248e66481c1c57155cca6 (patch)
tree4ebeb130270b3dd5c8b3dd9a0a62cd41f0433160 /commit.h
parenta3e8ae5473942c0d2621c5936685b6d98e63f006 (diff)
commit: export add_header_signature to support handling signatures on tags
Rename add_commit_signature as add_header_signature, and expose it so that it can be used for converting tags from one object format to another. Inspired-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 'commit.h')
-rw-r--r--commit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 28928833c5..03edcec012 100644
--- a/commit.h
+++ b/commit.h
@@ -370,5 +370,6 @@ int parse_buffer_signed_by_header(const char *buffer,
struct strbuf *payload,
struct strbuf *signature,
const struct git_hash_algo *algop);
+int add_header_signature(struct strbuf *buf, struct strbuf *sig, const struct git_hash_algo *algo);
#endif /* COMMIT_H */