path: root/pack-check.c
diff options
authorShawn O. Pearce <>2006-12-23 07:33:25 (GMT)
committerJunio C Hamano <>2006-12-29 19:36:44 (GMT)
commit4d703a1a9016cd0a08994ddf7fc2f4739f223112 (patch)
tree647905f5d3da11e06c7129b919e4e3cda6bde8a0 /pack-check.c
parent1ed4813f7d018eb35187209d43b98746a2e69542 (diff)
Replace unpack_entry_gently with unpack_entry.
The unpack_entry_gently function currently has only two callers: the delta base resolution in sha1_file.c and the main loop of pack-check.c. Both of these must change to using unpack_entry directly when we implement sliding window mmap logic, so I'm doing it earlier to help break down the change set. This may cause a slight performance decrease for delta base resolution as well as for pack-check.c's verify_packfile(), as the pack use counter will be incremented and decremented for every object that is unpacked. Signed-off-by: Shawn O. Pearce <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'pack-check.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-check.c b/pack-check.c
index c0caaee..491bad2 100644
--- a/pack-check.c
+++ b/pack-check.c
@@ -51,7 +51,7 @@ static int verify_packfile(struct packed_git *p)
offset = find_pack_entry_one(sha1, p);
if (!offset)
die("internal error pack-check find-pack-entry-one");
- data = unpack_entry_gently(p, offset, type, &size);
+ data = unpack_entry(p, offset, type, &size);
if (!data) {
err = error("cannot unpack %s from %s",
sha1_to_hex(sha1), p->pack_name);