diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-05-23 04:41:31 +0200 |
---|---|---|
committer | Andreas Ericsson <ae@op5.se> | 2010-06-02 10:32:07 +0200 |
commit | a7c182c59414cece10c819989bce3f1247f4eacc (patch) | |
tree | 54bdf67864a5d9dc16fc548f2748462b3fb63697 /src/revobject.h | |
parent | d047b47aadf88501238f36f5c17dd0a50dc62087 (diff) | |
download | libgit2-a7c182c59414cece10c819989bce3f1247f4eacc.tar.gz |
Add object cache to the revision pool.
Fixed issue when generating pending commits list during iteration.
The 'git_commit_lookup' function will now check the pool's cache
for commits which have been previously loaded/parsed; there can only
be a single 'git_commit' structure for each commit on the same pool.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/revobject.h')
-rw-r--r-- | src/revobject.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/revobject.h b/src/revobject.h index 8ec696a47..4a59d93f4 100644 --- a/src/revobject.h +++ b/src/revobject.h @@ -19,10 +19,11 @@ struct git_revpool_node struct git_revpool_table { + struct git_revpool_node **nodes; + unsigned int size_mask; unsigned int count; unsigned int max_count; - struct git_revpool_node **nodes; }; |