summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2022-01-17 08:12:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-01-17 19:01:44 (GMT)
commitfbe73f61cbc29f6c4a85478cf792c37dbe5aa26c (patch)
treeadd2e8fdb417d7201cba189e43b9a1dd95074aa2 /sequencer.c
parent69840cc0f7b4f3352903bd2b8f3de7077916c26b (diff)
downloadgit-fbe73f61cbc29f6c4a85478cf792c37dbe5aa26c.zip
git-fbe73f61cbc29f6c4a85478cf792c37dbe5aa26c.tar.gz
git-fbe73f61cbc29f6c4a85478cf792c37dbe5aa26c.tar.bz2
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 <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index 6abd721..61edd39 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -3588,7 +3588,7 @@ static int do_label(struct repository *r, const char *name, int len)
strbuf_addf(&ref_name, "refs/rewritten/%.*s", len, name);
strbuf_addf(&msg, "rebase (label) '%.*s'", len, name);
- transaction = ref_store_transaction_begin(refs, &err);
+ transaction = ref_store_transaction_begin(refs, 0, &err);
if (!transaction) {
error("%s", err.buf);
ret = -1;