MCPcopy Create free account
hub / github.com/git/git / odb_transaction_commit

Function odb_transaction_commit

odb/transaction.c:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15void odb_transaction_commit(struct odb_transaction *transaction)
16{
17 if (!transaction)
18 return;
19
20 /*
21 * Ensure the transaction ending matches the pending transaction.
22 */
23 ASSERT(transaction == transaction->source->odb->transaction);
24
25 transaction->commit(transaction);
26 transaction->source->odb->transaction = NULL;
27 free(transaction);
28}
29
30int odb_transaction_write_object_stream(struct odb_transaction *transaction,
31 struct odb_write_stream *stream,

Callers 6

cache_tree_updateFunction · 0.85
index_fdFunction · 0.85
add_files_to_cacheFunction · 0.85
cmd_addFunction · 0.85
cmd_update_indexFunction · 0.85
unpack_allFunction · 0.85

Calls 1

commitMethod · 0.80

Tested by

no test coverage detected