diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2025-04-08 10:51:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-04-08 07:57:21 -0700 |
commit | 31726bb90d70236f7afaa345bf45195e2ef62d22 (patch) | |
tree | dc023d15f3b1de5d8036a6f043a911c435fd18af /builtin/commit.c | |
parent | 23fc8e4f613179900ce28da959757a387543b468 (diff) |
refs: support rejection in batch updates during F/D checks
The `refs_verify_refnames_available()` is used to batch check refnames
for F/D conflicts. While this is the more performant alternative than
its individual version, it does not provide rejection capabilities on a
single update level. For batched updates, this would mean a rejection of
the entire transaction whenever one reference has a F/D conflict.
Modify the function to call `ref_transaction_maybe_set_rejected()` to
check if a single update can be rejected. Since this function is only
internally used within 'refs/' and we want to pass in a `struct
ref_transaction *` as a variable. We also move and mark
`refs_verify_refnames_available()` to 'refs-internal.h' to be an
internal function.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions