diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-11-20 08:51:30 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-11-21 07:59:14 +0900 |
| commit | a0efef144686ca2c46caad98df72507ba2606ce5 (patch) | |
| tree | 88e9912ac9831141af6569c1b7d1afe21a5facba /builtin/replace.c | |
| parent | The eighth batch (diff) | |
| download | git-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.c | 2 |
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) || |
