Line | Count | Source (jump to first uncovered line) |
1 | #include "git-compat-util.h" | |
2 | #include "blob.h" | |
3 | #include "alloc.h" | |
4 | ||
5 | const char *blob_type = "blob"; | |
6 | ||
7 | struct blob *lookup_blob(struct repository *r, const struct object_id *oid) | |
8 | 0 | { |
9 | 0 | struct object *obj = lookup_object(r, oid); |
10 | 0 | if (!obj) |
11 | 0 | return create_object(r, oid, alloc_blob_node(r)); |
12 | 0 | return object_as_type(obj, OBJ_BLOB, 0); |
13 | 0 | } |
14 | ||
15 | void parse_blob_buffer(struct blob *item) | |
16 | 0 | { |
17 | 0 | item->object.parsed = 1; |
18 | 0 | } |