]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: move logic to compute packed abbreviation length
authorPatrick Steinhardt <ps@pks.im>
Fri, 20 Mar 2026 07:07:39 +0000 (08:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2026 20:16:42 +0000 (13:16 -0700)
commit6c2ede6e4abed754bb5891c2904212c05efcfb11
tree84ad390cef9248deda96d8fca0dd290c2a69d23c
parentab3ab1038dd38d2be62e3bacf39a3248929a7a98
object-file: move logic to compute packed abbreviation length

Same as the preceding commit, move the logic that computes the minimum
required prefix length to make a given object ID unique for the packfile
store into a new function `packfile_store_find_abbrev_len()` that is
part of "packfile.c". This prepares for making the logic fully generic
via pluggable object databases.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-name.c
packfile.c
packfile.h