diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-05-23 02:39:57 +0200 |
---|---|---|
committer | Andreas Ericsson <ae@op5.se> | 2010-06-02 10:32:06 +0200 |
commit | 5e15176dac8b0baa6f7950f5f763608c83b29093 (patch) | |
tree | 5bcc94ea49a378e97626436c5b28be17b54eeac6 /src/revobject.c | |
parent | c5696427b6d53a3f79baad35ea33c556884a410a (diff) | |
download | libgit2-5e15176dac8b0baa6f7950f5f763608c83b29093.tar.gz |
Add commit caching on the commit table.
Properly initialize the pending commits list.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/revobject.c')
-rw-r--r-- | src/revobject.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/revobject.c b/src/revobject.c index 7c2513775..2ed634540 100644 --- a/src/revobject.c +++ b/src/revobject.c @@ -33,7 +33,7 @@ unsigned int git_revpool_table__hash(const git_oid *id) const unsigned int m = 0x5bd1e995; const int r = 24; - unsigned int h = 0xA8A3D5 ^ (unsigned int)id; + unsigned int h = 0xA8A3D5; int i; for (i = 0; i < GIT_OID_RAWSZ / 4; ++i) @@ -165,3 +165,9 @@ void git_revpool_table_resize(git_revpool_table *table) table->size_mask = (new_size - 1); table->max_count = new_size * max_load_factor; } + + +void git_revpool_table_free(git_revpool_table *table) +{ + +} |