]> git.ipfire.org Git - thirdparty/git.git/blame - blob.c
docs: address typos in Git v2.45 changelog
[thirdparty/git.git] / blob.c
CommitLineData
a64215b6 1#include "git-compat-util.h"
8f1d2e6f 2#include "blob.h"
14ba97f8 3#include "alloc.h"
175785e5
DB
4
5const char *blob_type = "blob";
6
17126cdf 7struct blob *lookup_blob(struct repository *r, const struct object_id *oid)
175785e5 8{
d0229abd 9 struct object *obj = lookup_object(r, oid);
100c5f3b 10 if (!obj)
a378509e 11 return create_object(r, oid, alloc_blob_node(r));
6da43d93 12 return object_as_type(obj, OBJ_BLOB, 0);
175785e5 13}
a510bfaa 14
c1166ca0 15void parse_blob_buffer(struct blob *item)
bd2c39f5
NP
16{
17 item->object.parsed = 1;
bd2c39f5 18}