]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source: introduce function to map source type to name
authorPatrick Steinhardt <ps@pks.im>
Fri, 24 Jul 2026 03:48:43 +0000 (05:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Jul 2026 17:21:44 +0000 (10:21 -0700)
commitbdf92ad403fad3aa63806274467b97221487faf3
tree1dab713c5b63e47237ed73296d2f60992de8bdcd
parentcc0a909026a26b5e10cf7283084b9dde102dfc46
odb/source: introduce function to map source type to name

Introduce a new function that maps an object source's type to a
human-readable name. Use the function to provide better human-readable
error messages for the downcasting functions.

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