pack-bitmap: factor out 'bitmap_for_commit()'
commit98c31f366a1770fb7ea04125ff2d8b1ea1f7d0d7
authorTaylor Blau <me@ttaylorr.com>
Tue, 8 Dec 2020 22:05:09 +0000 (8 17:05 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Dec 2020 22:49:04 +0000 (8 14:49 -0800)
tree8d941547fb3637598d64533aa97097fed4763a37
parent449fa5ee06906ca6d109e06b14cb4f8ea60a6c88
pack-bitmap: factor out 'bitmap_for_commit()'

A couple of callers within pack-bitmap.c duplicate logic to lookup a
given object id in the bitamps khash. Factor this out into a new
function, 'bitmap_for_commit()' to reduce some code duplication.

Make this new function non-static, since it will be used in later
commits from outside of pack-bitmap.c.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-bitmap.c
pack-bitmap.h