]> git.ipfire.org Git - thirdparty/git.git/commit
refs: export `ref_transaction_update_reflog()`
authorPatrick Steinhardt <ps@pks.im>
Wed, 6 Aug 2025 05:54:14 +0000 (07:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Aug 2025 14:36:29 +0000 (07:36 -0700)
commit1ffd2d41599e2b506f20430914e3bc53a0e05f3a
tree4a7169b6f8713e0b984fbfb87a6f48a676c178e0
parent649c7bb77a173c6ef2c27fc64b8689aee9b0b8a8
refs: export `ref_transaction_update_reflog()`

In a subsequent commit we'll add another user that wants to write reflog
entries. This requires them to call `ref_transaction_update_reflog()`,
but that function is local to "refs.c".

Export the function to prepare for the change. While at it, drop the
`flags` field, as all callers are for now expected to use the same flags
anyway.

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