aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2021-01-13 17:23:35 -0500
committerJunio C Hamano <gitster@pobox.com>2021-01-13 21:53:45 -0800
commit952fc6870d9594b364cf755e8419843b3049d98c (patch)
tree840a1acfd40da36b5bfa8beb5cfaf37b217948dc /commit.c
parentpack-revindex: introduce a new API (diff)
downloadgit-952fc6870d9594b364cf755e8419843b3049d98c.tar.gz
git-952fc6870d9594b364cf755e8419843b3049d98c.zip
write_reuse_object(): convert to new revindex API
First replace 'find_pack_revindex()' with its replacement 'offset_to_pack_pos()'. This prevents any bogus OFS_DELTA that may make its way through until 'write_reuse_object()' from causing a bad memory read (if 'revidx' is 'NULL') Next, replace a direct access of '->nr' with the wrapper function 'pack_pos_to_index()'. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions