diff options
author | 2021-01-13 17:24:05 -0500 | |
---|---|---|
committer | 2021-01-13 21:53:46 -0800 | |
commit | 011f3fd5cdacc69e2ba2adf998656adcd2045a0f (patch) | |
tree | 7be41875517928c075b977c08ab6e3039daea23d /t/t7105-reset-patch.sh | |
parent | get_size_by_pos(): convert to new revindex API (diff) | |
download | tgif-011f3fd5cdacc69e2ba2adf998656adcd2045a0f.tar.xz |
try_partial_reuse(): convert to new revindex API
Remove another instance of direct revindex manipulation by calling
'pack_pos_to_offset()' instead (the caller here does not care about the
index position of the object at position 'pos').
Note that we cannot just use the existing "offset" variable to store the
value we get from pack_pos_to_offset(). It is incremented by
unpack_object_header(), but we later need the original value. Since
we'll no longer have revindex->offset to read it from, we'll store that
in a separate variable ("header" since it points to the entry's header
bytes).
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7105-reset-patch.sh')
0 files changed, 0 insertions, 0 deletions