MCPcopy Index your code
hub / github.com/git/git / init_update_ref_record

Function init_update_ref_record

sequencer.c:258–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256};
257
258static struct update_ref_record *init_update_ref_record(const char *ref)
259{
260 struct update_ref_record *rec;
261
262 CALLOC_ARRAY(rec, 1);
263
264 oidcpy(&rec->before, null_oid(the_hash_algo));
265 oidcpy(&rec->after, null_oid(the_hash_algo));
266
267 /* This may fail, but that's fine, we will keep the null OID. */
268 refs_read_ref(get_main_ref_store(the_repository), ref, &rec->before);
269
270 return rec;
271}
272
273static int git_sequencer_config(const char *k, const char *v,
274 const struct config_context *ctx, void *cb)

Callers 2

add_decorations_to_listFunction · 0.85

Calls 4

oidcpyFunction · 0.85
null_oidFunction · 0.85
refs_read_refFunction · 0.85
get_main_ref_storeFunction · 0.85

Tested by

no test coverage detected