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

Function lookup_blob

blob.c:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5const char *blob_type = "blob";
6
7struct blob *lookup_blob(struct repository *r, const struct object_id *oid)
8{
9 struct object *obj = lookup_object(r, oid);
10 if (!obj)
11 return create_object(r, oid, alloc_blob_node(r));
12 return object_as_type(obj, OBJ_BLOB, 0);
13}
14
15void parse_blob_buffer(struct blob *item)
16{

Callers 15

parse_tag_bufferFunction · 0.85
process_treeFunction · 0.85
add_recent_objectFunction · 0.85
add_children_by_pathFunction · 0.85
process_tree_contentsFunction · 0.85
lookup_object_by_typeFunction · 0.85
parse_object_bufferFunction · 0.85
parse_object_with_flagsFunction · 0.85
fsck_walk_treeFunction · 0.85

Calls 4

lookup_objectFunction · 0.85
create_objectFunction · 0.85
alloc_blob_nodeFunction · 0.85
object_as_typeFunction · 0.85

Tested by

no test coverage detected