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

Function reference_get_peeled_oid

refs.c:2486–2496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2484}
2485
2486int reference_get_peeled_oid(struct repository *repo,
2487 const struct reference *ref,
2488 struct object_id *peeled_oid)
2489{
2490 if (ref->peeled_oid) {
2491 oidcpy(peeled_oid, ref->peeled_oid);
2492 return 0;
2493 }
2494
2495 return peel_object(repo, ref->oid, peeled_oid, 0) ? -1 : 0;
2496}
2497
2498int refs_update_symref(struct ref_store *refs, const char *ref,
2499 const char *target, const char *logmsg)

Callers 12

write_v0_refFunction · 0.85
add_ref_to_setFunction · 0.85
add_ref_to_pendingFunction · 0.85
send_refFunction · 0.85
midx_snapshot_ref_oneFunction · 0.85
show_oneFunction · 0.85
get_nameFunction · 0.85
dfs_on_refFunction · 0.85
mark_taggedFunction · 0.85
add_ref_tagFunction · 0.85

Calls 2

oidcpyFunction · 0.85
peel_objectFunction · 0.85

Tested by

no test coverage detected