]> git.ipfire.org Git - thirdparty/git.git/commit
use repo_get_oid_with_flags()
authorRené Scharfe <l.s.r@web.de>
Wed, 10 Sep 2025 17:16:30 +0000 (19:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Sep 2025 21:29:49 +0000 (14:29 -0700)
commita66fc22bf9b7f379fc68e23c54d42ac9b7eaa845
tree280c7a9da4a8dc45e06af9d88b72420a340ea36c
parentc44beea485f0f2feaf460e2ac87fdd5608d63cf0
use repo_get_oid_with_flags()

get_oid_with_context() allows specifying flags and reports object
details via a passed-in struct object_context.  Some callers just want
to specify flags, but don't need any details back.  Convert them to
repo_get_oid_with_flags(), which provides just that and frees them from
dealing with the context structure.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-tree.c
builtin/rev-parse.c
builtin/stash.c
list-objects-filter.c
object-name.c