summaryrefslogtreecommitdiff
path: root/src/pack.h
diff options
context:
space:
mode:
authorDavid Michael Barr <b@rr-dav.id.au>2012-09-10 11:48:21 +1000
committerDavid Michael Barr <b@rr-dav.id.au>2012-09-14 15:52:41 +1000
commit60ecdf59d3af87125467fbed97b575f783129f70 (patch)
tree290179cb1427379fde3de43852c3392d5037efaa /src/pack.h
parent687ec68be4afbc060b499c2198c16c39685f1aee (diff)
downloadlibgit2-60ecdf59d3af87125467fbed97b575f783129f70.tar.gz
pack: iterate objects in offset order
Compute the ordering on demand and persist until the index is freed.
Diffstat (limited to 'src/pack.h')
-rw-r--r--src/pack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pack.h b/src/pack.h
index 178545675..af87b7cd5 100644
--- a/src/pack.h
+++ b/src/pack.h
@@ -64,6 +64,7 @@ struct git_pack_file {
unsigned pack_local:1, pack_keep:1, has_cache:1;
git_oid sha1;
git_vector cache;
+ git_oid **oids;
/* something like ".git/objects/pack/xxxxx.pack" */
char pack_name[GIT_FLEX_ARRAY]; /* more */