]> Kevux Git Server - rit/commit
object-name: merge `update_candidates()` and `match_prefix()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 20 Mar 2026 07:07:35 +0000 (08:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2026 20:16:42 +0000 (13:16 -0700)
commite9b7caa1b14bc1fe825b216941a0655d6afdffe5
tree41534463f0a5aa2a9cd8214feeaaeae8da1ae3e0
parenteac58debd9f61391a61b832e3cee349a20bd2c4a
object-name: merge `update_candidates()` and `match_prefix()`

There's only a single callsite for `match_prefix()`, and that function
is a rather trivial wrapper of `update_candidates()`. Merge these two
functions into a single `update_disambiguate_state()` function.

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