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

Function parse_object_or_die

object.c:311–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311struct object *parse_object_or_die(struct repository *repo,
312 const struct object_id *oid,
313 const char *name)
314{
315 struct object *o = parse_object(repo, oid);
316 if (o)
317 return o;
318
319 die(_("unable to parse object: %s"), name ? name : oid_to_hex(oid));
320}
321
322struct object *parse_object_with_flags(struct repository *r,
323 const struct object_id *oid,

Callers 11

prepare_bitmap_walkFunction · 0.85
parse_want_refFunction · 0.85
add_one_fileFunction · 0.85
add_one_refFunction · 0.85
add_recent_objectFunction · 0.85
add_ref_to_pendingFunction · 0.85
read_refs_snapshotFunction · 0.85
peel_committishFunction · 0.85
cmd_grepFunction · 0.85
cmd_pruneFunction · 0.85

Calls 3

parse_objectFunction · 0.85
oid_to_hexFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected