From fbe73f61cbc29f6c4a85478cf792c37dbe5aa26c Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 17 Jan 2022 09:12:35 +0100 Subject: refs: allow passing flags when beginning transactions We do not currently have any flags when creating reference transactions, but we'll add one to disable execution of the reference transaction hook in some cases. Allow passing flags to `ref_store_transaction_begin()` to prepare for this change. Signed-off-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- refs/refs-internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'refs/refs-internal.h') diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 46a839539e..a0af63f162 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -213,6 +213,7 @@ struct ref_transaction { size_t nr; enum ref_transaction_state state; void *backend_data; + unsigned int flags; }; /* -- cgit v1.2.3