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

Function init_checkout_metadata

convert.c:2024–2035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2022}
2023
2024void init_checkout_metadata(struct checkout_metadata *meta, const char *refname,
2025 const struct object_id *treeish,
2026 const struct object_id *blob)
2027{
2028 memset(meta, 0, sizeof(*meta));
2029 if (refname)
2030 meta->refname = refname;
2031 if (treeish)
2032 oidcpy(&meta->treeish, treeish);
2033 if (blob)
2034 oidcpy(&meta->blob, blob);
2035}
2036
2037void clone_checkout_metadata(struct checkout_metadata *dst,
2038 const struct checkout_metadata *src,

Callers 11

object_file_to_archiveFunction · 0.85
reset_headFunction · 0.85
checkout_fast_forwardFunction · 0.85
do_resetFunction · 0.85
prep_temp_blobFunction · 0.85
filter_objectFunction · 0.85
reset_indexFunction · 0.85
checkoutFunction · 0.85
checkout_worktreeFunction · 0.85
reset_treeFunction · 0.85
merge_working_treeFunction · 0.85

Calls 1

oidcpyFunction · 0.85

Tested by

no test coverage detected