aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/tag.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/tag.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/tag.c')
-rw-r--r--builtin/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/tag.c b/builtin/tag.c
index 93d10d5915..3fa0ab1113 100644
--- a/builtin/tag.c
+++ b/builtin/tag.c
@@ -681,7 +681,7 @@ int cmd_tag(int argc,
}
transaction = ref_store_transaction_begin(get_main_ref_store(the_repository),
- &err);
+ 0, &err);
if (!transaction ||
ref_transaction_update(transaction, ref.buf, &object, &prev,
NULL, NULL,