aboutsummaryrefslogtreecommitdiff
path: root/builtin/receive-pack.c
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2026-01-25 23:52:37 +0100
committerJunio C Hamano <gitster@pobox.com>2026-01-25 22:27:33 -0800
commitbe54b10fd7f313b107c00061349a6a46e9eb926e (patch)
treea13078b4e9a2af36e46c3f570783ea0bb7ba5483 /builtin/receive-pack.c
parentb52a28b03ec99f2cfe4ef921b0d47250c665b0c6 (diff)
downloadgit-be54b10fd7f313b107c00061349a6a46e9eb926e.tar.xz
refs: add rejection detail to the callback function
The previous commit started storing the rejection details alongside the error code for rejected updates. Pass this along to the callback function `ref_transaction_for_each_rejected_update()`. Currently the field is unused, but will be integrated in the upcoming commits. Co-authored-by: Jeff King <peff@peff.net> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/receive-pack.c')
-rw-r--r--builtin/receive-pack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index ef1f77be8c..94d3e73cee 100644
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
@@ -1813,6 +1813,7 @@ static void ref_transaction_rejection_handler(const char *refname,
const char *old_target UNUSED,
const char *new_target UNUSED,
enum ref_transaction_error err,
+ const char *details UNUSED,
void *cb_data)
{
struct strmap *failed_refs = cb_data;