summaryrefslogtreecommitdiff
path: root/src/odb_pack.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2016-04-22 18:12:09 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2016-04-22 18:12:09 +0200
commit5fe874632df9c70022e2ea47a01876780f8b3d02 (patch)
tree5ae8cb5782df1b75e7cd6ec89c1df2cbb984f01f /src/odb_pack.c
parent1dc449105b329ea4f8ea9982bc2da869d231c04a (diff)
downloadlibgit2-cmn/read-only-size.tar.gz
odb: allow asking for the size alonecmn/read-only-size
Reading a packed object's type can be expensive if it's deeply chained. Allow a caller to skip that part of the lookup if they don't care or know the type through other means.
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r--src/odb_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 5a57864ad..a11b5aad9 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -355,7 +355,7 @@ static int pack_backend__read_header(
struct git_pack_entry e;
int error;
- assert(len_p && type_p && backend && oid);
+ assert(len_p && backend && oid);
if ((error = pack_entry_find(&e, (struct pack_backend *)backend, oid)) < 0)
return error;