summaryrefslogtreecommitdiff
path: root/rebase.h
diff options
context:
space:
mode:
authorLibravatar Taylor Blau <me@ttaylorr.com>2021-01-13 17:24:05 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-01-13 21:53:46 -0800
commit011f3fd5cdacc69e2ba2adf998656adcd2045a0f (patch)
tree7be41875517928c075b977c08ab6e3039daea23d /rebase.h
parentget_size_by_pos(): convert to new revindex API (diff)
downloadtgif-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 'rebase.h')
0 files changed, 0 insertions, 0 deletions