]> git.ipfire.org Git - thirdparty/git.git/commit
odb: introduce generic `odb_find_abbrev_len()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 20 Mar 2026 07:07:40 +0000 (08:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2026 20:16:42 +0000 (13:16 -0700)
commit83869e15fa9ef3b0ea2adbfe2fe68a309f95b856
tree40dd62b65441c70670cd5f019d11c88f9788e8ed
parent6c2ede6e4abed754bb5891c2904212c05efcfb11
odb: introduce generic `odb_find_abbrev_len()`

Introduce a new generic `odb_find_abbrev_len()` function as well as
source-specific callback functions. This makes the logic to compute the
required prefix length to make a given object unique fully pluggable.

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