diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-01-05 11:00:38 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-01-05 11:00:49 -0800 |
commit | 9d3d78435f2735b74afc74e9c5a735c27c026d33 (patch) | |
tree | 8f66df5b090f6163698d66cc9dd7a522ae359dfd /commit.h | |
parent | 0074d18dc0d816f9842d3e0e1cd0b26341715b37 (diff) | |
parent | 0c5e70f041bfda8b3899d13694a9093b41fafa19 (diff) | |
download | git-9d3d78435f2735b74afc74e9c5a735c27c026d33.tar.gz |
Merge branch 'jc/signed-commit' and 'jc/pull-signed-tag'
They both use the extended headers in commit objects, and the former has
necessary infrastructure to show them that is useful to view the result of
the latter.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -193,11 +193,11 @@ extern void append_merge_tag_headers(struct commit_list *parents, extern int commit_tree(const char *msg, unsigned char *tree, struct commit_list *parents, unsigned char *ret, - const char *author); + const char *author, const char *sign_commit); extern int commit_tree_extended(const char *msg, unsigned char *tree, struct commit_list *parents, unsigned char *ret, - const char *author, + const char *author, const char *sign_commit, struct commit_extra_header *); extern struct commit_extra_header *read_commit_extra_headers(struct commit *); @@ -218,4 +218,6 @@ struct merge_remote_desc { */ struct commit *get_merge_parent(const char *name); +extern int parse_signed_commit(const unsigned char *sha1, + struct strbuf *message, struct strbuf *signature); #endif /* COMMIT_H */ |