From c5696427b6d53a3f79baad35ea33c556884a410a Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Sat, 22 May 2010 23:21:10 +0200 Subject: 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 Signed-off-by: Andreas Ericsson --- src/commit.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/commit.h') 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 @@ -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; -- cgit v1.2.1