]>
Commit | Line | Data |
---|---|---|
bb742ede | 1 | /* |
5e0de328 | 2 | * Copyright (C) 2009-2012 the libgit2 contributors |
bb742ede VM |
3 | * |
4 | * This file is part of libgit2, distributed under the GNU GPL v2 with | |
5 | * a Linking Exception. For full terms see the included COPYING file. | |
6 | */ | |
4f0adcd0 AE |
7 | #ifndef INCLUDE_commit_h__ |
8 | #define INCLUDE_commit_h__ | |
b3039bee | 9 | |
44908fe7 | 10 | #include "git2/commit.h" |
225fe215 | 11 | #include "tree.h" |
3315782c | 12 | #include "repository.h" |
eec95235 | 13 | #include "vector.h" |
4f0adcd0 AE |
14 | |
15 | #include <time.h> | |
16 | ||
17 | struct git_commit { | |
f49a2e49 | 18 | git_object object; |
c5696427 | 19 | |
cfbe4be3 VM |
20 | git_vector parent_ids; |
21 | git_oid tree_id; | |
08d5d000 | 22 | |
638c2ca4 VM |
23 | git_signature *author; |
24 | git_signature *committer; | |
52f2390b | 25 | |
5ae2f0c0 | 26 | char *message_encoding; |
52f2390b | 27 | char *message; |
4f0adcd0 AE |
28 | }; |
29 | ||
40721f6b | 30 | void git_commit__free(git_commit *c); |
72a3fe42 | 31 | int git_commit__parse(git_commit *commit, git_odb_object *obj); |
0c3596f1 | 32 | |
d568d585 | 33 | int git_commit__parse_buffer(git_commit *commit, const void *data, size_t len); |
4f0adcd0 | 34 | #endif |