]> git.ipfire.org Git - thirdparty/git.git/commit
object-name: introduce `repo_get_oid_with_flags()`
authorPatrick Steinhardt <ps@pks.im>
Wed, 12 Mar 2025 15:56:07 +0000 (16:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Mar 2025 18:31:16 +0000 (11:31 -0700)
commit37e7546b91fb7d7c263d809dbf7d85831c15cc4f
tree13c4573c56f1bdbb3daaad9b5ec956b152cd3bf3
parent08bdfd453584e489d5a551aecbdcb77584e1b958
object-name: introduce `repo_get_oid_with_flags()`

Introduce a new function `repo_get_oid_with_flags()`. This function
behaves the same as `repo_get_oid()`, except that it takes an extra
`flags` parameter that it ends up passing to `get_oid_with_context()`.

This function will be used in a subsequent commit.

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