]> git.ipfire.org Git - thirdparty/git.git/commit
odb: rename `read_object_with_reference()`
authorPatrick Steinhardt <ps@pks.im>
Tue, 1 Jul 2025 12:22:29 +0000 (14:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 21:46:39 +0000 (14:46 -0700)
commit841a03b4046ab81276743b4d7e727b1658f805da
tree326a295d6e22f5c1d3dc8d8b46e74b33c7302d17
parent08218b8cd4b54468bbb7cd09454a630ca4209d1a
odb: rename `read_object_with_reference()`

Rename `read_object_with_reference()` to `odb_read_object_peeled()` to
match other functions related to the object database and our modern
coding guidelines. Furthermore though, the old name didn't really
describe very well what this function actually does, which is to walk
down any commit and tag objects until an object of the required type has
been found. This is generally referred to as "peeling", so the new name
should be way more descriptive.

No compatibility wrapper is introduced as the function is not used a lot
throughout our codebase.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/user-manual.adoc
builtin/cat-file.c
builtin/fast-import.c
builtin/grep.c
builtin/pack-objects.c
odb.c
odb.h
tree-walk.c