aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/replace.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-11-20 08:51:30 +0100
committerJunio C Hamano <gitster@pobox.com>2024-11-21 07:59:14 +0900
commita0efef144686ca2c46caad98df72507ba2606ce5 (patch)
tree88e9912ac9831141af6569c1b7d1afe21a5facba /builtin/replace.c
parentThe eighth batch (diff)
downloadgit-a0efef144686ca2c46caad98df72507ba2606ce5.tar.gz
git-a0efef144686ca2c46caad98df72507ba2606ce5.zip
refs: allow passing flags when setting up a transaction
Allow passing flags when setting up a transaction such that the behaviour of the transaction itself can be altered. This functionality will be used in a subsequent patch. Adapt callers accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/replace.c')
-rw-r--r--builtin/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/replace.c b/builtin/replace.c
index a44f4e7ea9..a4eaadff91 100644
--- a/builtin/replace.c
+++ b/builtin/replace.c
@@ -201,7 +201,7 @@ static int replace_object_oid(const char *object_ref,
}
transaction = ref_store_transaction_begin(get_main_ref_store(the_repository),
- &err);
+ 0, &err);
if (!transaction ||
ref_transaction_update(transaction, ref.buf, repl, &prev,
NULL, NULL, 0, NULL, &err) ||