summaryrefslogtreecommitdiff
path: root/fetch-pack.h
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2018-01-17 14:08:23 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-01-19 11:04:56 -0800
commitad622a256f0dd0be44ca17f58b3f5b43cedb4320 (patch)
treeaa26cd44a6bada37277730382febb9505b167731 /fetch-pack.h
parentGit 2.16 (diff)
downloadtgif-ad622a256f0dd0be44ca17f58b3f5b43cedb4320.tar.xz
packfile: use get_be64() for large offsets
The pack-index version 2 format uses two 4-byte integers in network-byte order to represent one 8-byte value. The current implementation has several code clones for stitching these integers together. Use get_be64() to create an 8-byte integer from two 4-byte integers represented this way. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-pack.h')
0 files changed, 0 insertions, 0 deletions