Skip to content

Commit 6a5c10c

Browse files
ttaylorrgitster
authored andcommitted
write_reused_pack_verbatim(): convert to new revindex API
Replace a direct access to the revindex array with 'pack_pos_to_offset()'. Signed-off-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 66cbd3e commit 6a5c10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/pack-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ static size_t write_reused_pack_verbatim(struct hashfile *out,
952952
off_t to_write;
953953

954954
written = (pos * BITS_IN_EWORD);
955-
to_write = reuse_packfile->revindex[written].offset
955+
to_write = pack_pos_to_offset(reuse_packfile, written)
956956
- sizeof(struct pack_header);
957957

958958
/* We're recording one chunk, not one object. */

0 commit comments

Comments
 (0)