Thread (94 messages) 94 messages, 4 authors, 2021-01-14

Re: [PATCH 04/20] write_reused_pack_verbatim(): convert to new revindex API

From: Jeff King <hidden>
Date: 2021-01-12 08:51:25

On Fri, Jan 08, 2021 at 01:16:56PM -0500, Taylor Blau wrote:
quoted hunk ↗ jump to hunk
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index ea7df9270f..4341bc27b4 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -948,7 +948,7 @@ static size_t write_reused_pack_verbatim(struct hashfile *out,
 		off_t to_write;
 
 		written = (pos * BITS_IN_EWORD);
-		to_write = reuse_packfile->revindex[written].offset
+		to_write = pack_pos_to_offset(reuse_packfile, written)
 			- sizeof(struct pack_header);
This one is obviously correct.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help