summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-01-05 11:00:38 -0800
committerJunio C Hamano <gitster@pobox.com>2012-01-05 11:00:49 -0800
commit9d3d78435f2735b74afc74e9c5a735c27c026d33 (patch)
tree8f66df5b090f6163698d66cc9dd7a522ae359dfd /commit.h
parent0074d18dc0d816f9842d3e0e1cd0b26341715b37 (diff)
parent0c5e70f041bfda8b3899d13694a9093b41fafa19 (diff)
downloadgit-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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/commit.h b/commit.h
index 3745f12099..61076486df 100644
--- a/commit.h
+++ b/commit.h
@@ -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 */