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>
This commit is contained in:
committed by
Junio C Hamano
parent
facbe4f633
commit
a0efef1446
@ -612,7 +612,7 @@ static void update_refs_stdin(void)
|
||||
int i, j;
|
||||
|
||||
transaction = ref_store_transaction_begin(get_main_ref_store(the_repository),
|
||||
&err);
|
||||
0, &err);
|
||||
if (!transaction)
|
||||
die("%s", err.buf);
|
||||
|
||||
@ -680,7 +680,7 @@ static void update_refs_stdin(void)
|
||||
*/
|
||||
state = cmd->state;
|
||||
transaction = ref_store_transaction_begin(get_main_ref_store(the_repository),
|
||||
&err);
|
||||
0, &err);
|
||||
if (!transaction)
|
||||
die("%s", err.buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user