summaryrefslogtreecommitdiff
path: root/t/helper/test-path-utils.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2024-08-27 17:13:39 -0400
committerJunio C Hamano <gitster@pobox.com>2024-08-27 14:50:27 -0700
commitd3e7db2b8285e3ac3e9c28df51eab8237bf9c700 (patch)
tree902f21f69ec811c00978e398384aa84daeb83d62 /t/helper/test-path-utils.c
parentdb40e3c92b9ccd03d2263b12cf1824ffab8a1cce (diff)
builtin/pack-objects.c: do not open-code `MAX_PACK_OBJECT_HEADER`
The function `write_reused_pack_one()` defines an header to store the OFS_DELTA header, but uses the constant "10" instead of "MAX_PACK_OBJECT_HEADER" (as is done elsewhere in the same patch, circa bb514de356c (pack-objects: improve partial packfile reuse, 2019-12-18)). Declare the `ofs_header` field to be sized according to `MAX_PACK_OBJECT_HEADER` (which is 10, as defined in "pack.h") instead of the constant 10. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-path-utils.c')
0 files changed, 0 insertions, 0 deletions