Add 'git_revpool_object' and 'git_revpool_table' structures.
commitc5696427b6d53a3f79baad35ea33c556884a410a
authorVicent Marti <tanoku@gmail.com>
Sat, 22 May 2010 21:21:10 +0000 (22 23:21 +0200)
committerAndreas Ericsson <ae@op5.se>
Wed, 2 Jun 2010 08:32:06 +0000 (2 10:32 +0200)
treecb3ab00e68da089aecd496ba4e39b1c706ed7c68
parent36b7cdb6a1a2e685c7141406808366d4c4b9f98e
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>
src/commit.c
src/commit.h
src/revobject.c [new file with mode: 0644]
src/revobject.h [new file with mode: 0644]
src/revwalk.c