summaryrefslogtreecommitdiff
path: root/src/commit.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-05-22 23:21:10 +0200
committerAndreas Ericsson <ae@op5.se>2010-06-02 10:32:06 +0200
commitc5696427b6d53a3f79baad35ea33c556884a410a (patch)
treecb3ab00e68da089aecd496ba4e39b1c706ed7c68 /src/commit.h
parent36b7cdb6a1a2e685c7141406808366d4c4b9f98e (diff)
downloadlibgit2-c5696427b6d53a3f79baad35ea33c556884a410a.tar.gz
Add 'git_revpool_object' and 'git_revpool_table' structures.
All the objects which will will be eventually transversable from a revision pool (commits, trees, etc) now inherit from the 'git_revpool_object' structure which identifies them with their own OID. Furthermore, the 'git_revpool_table' and related functions have been added, which allow for constant time lookup (hash table) of the loaded revpool objects based on their OID. Signed-off-by: Vicent Marti <tanoku@gmail.com> Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/commit.h')
-rw-r--r--src/commit.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commit.h b/src/commit.h
index 75e6d95a8..818d98c06 100644
--- a/src/commit.h
+++ b/src/commit.h
@@ -2,6 +2,7 @@
#define INCLUDE_commit_h__
#include "git/commit.h"
+#include "revobject.h"
#include <time.h>
@@ -22,9 +23,9 @@ typedef struct git_commit_list git_commit_list;
typedef struct git_commit_node git_commit_node;
struct git_commit {
- git_oid id;
+ git_revpool_object object;
+
time_t commit_time;
- git_revpool *pool;
git_commit_list parents;
unsigned short in_degree;