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

Function ref_store_transaction_begin

refs.c:1212–1228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210}
1211
1212struct ref_transaction *ref_store_transaction_begin(struct ref_store *refs,
1213 unsigned int flags,
1214 struct strbuf *err)
1215{
1216 struct ref_transaction *tr;
1217 assert(err);
1218
1219 CALLOC_ARRAY(tr, 1);
1220 tr->ref_store = refs;
1221 tr->flags = flags;
1222 string_list_init_dup(&tr->refnames);
1223
1224 if (flags & REF_TRANSACTION_ALLOW_FAILURE)
1225 CALLOC_ARRAY(tr->rejections, 1);
1226
1227 return tr;
1228}
1229
1230void ref_transaction_free(struct ref_transaction *transaction)
1231{

Callers 15

fast_forward_toFunction · 0.85
update_head_with_reflogFunction · 0.85
do_labelFunction · 0.85
refs_delete_refFunction · 0.85
refs_update_refFunction · 0.85
refs_delete_refsFunction · 0.85
create_branchFunction · 0.85
walker_fetchFunction · 0.85
prune_refFunction · 0.85
files_optimizeFunction · 0.85

Calls 1

string_list_init_dupFunction · 0.85

Tested by

no test coverage detected