summaryrefslogtreecommitdiff
path: root/src/commit.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-06-18 13:06:34 +0200
committerVicent Marti <tanoku@gmail.com>2010-07-15 23:39:30 +0200
commit225fe21522a98075bdc18dae90ce459f797ac366 (patch)
tree16d9bd5394fcbe6cc3dd5cae5124bd8400343e10 /src/commit.h
parent40721f6b1297f2a48aeb5c9a3ac095767b1153bf (diff)
downloadlibgit2-225fe21522a98075bdc18dae90ce459f797ac366.tar.gz
Add support for tree objects in revision pools
Commits now store pointers to their tree objects. Tree objects now work as separate git_revpool_object entities. Tree objects can be loaded and parsed inedependently from commits. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/commit.h')
-rw-r--r--src/commit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commit.h b/src/commit.h
index 50acd0c53..524570f2c 100644
--- a/src/commit.h
+++ b/src/commit.h
@@ -2,6 +2,7 @@
#define INCLUDE_commit_h__
#include "git/commit.h"
+#include "tree.h"
#include "revobject.h"
#include <time.h>
@@ -22,12 +23,15 @@ struct git_commit_list {
typedef struct git_commit_list git_commit_list;
typedef struct git_commit_node git_commit_node;
+
struct git_commit {
git_revpool_object object;
time_t commit_time;
git_commit_list parents;
+ git_tree *tree;
+
unsigned short in_degree;
unsigned parsed:1,
seen:1,