Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/blob.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / blob.c` 18 lines ยท 403 bytes Raw Blame History 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 { 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 15 void parse_blob_buffer(struct blob *item) 16 { 17 item->object.parsed = 1; 18 }