diff options
| author | Patrick Steinhardt <ps@pks.im> | 2022-01-17 09:12:35 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-01-17 11:01:44 -0800 |
| commit | fbe73f61cbc29f6c4a85478cf792c37dbe5aa26c (patch) | |
| tree | add2e8fdb417d7201cba189e43b9a1dd95074aa2 /refs/packed-backend.c | |
| parent | refs: extract packed_refs_delete_refs() to allow control of transaction (diff) | |
| download | git-fbe73f61cbc29f6c4a85478cf792c37dbe5aa26c.tar.gz git-fbe73f61cbc29f6c4a85478cf792c37dbe5aa26c.zip | |
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 'refs/packed-backend.c')
| -rw-r--r-- | refs/packed-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c index c964dd1617..0b45598e18 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -1535,7 +1535,7 @@ static int packed_delete_refs(struct ref_store *ref_store, const char *msg, * updates into a single transaction. */ - transaction = ref_store_transaction_begin(ref_store, &err); + transaction = ref_store_transaction_begin(ref_store, 0, &err); if (!transaction) return -1; |
