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

Function odb_loose_path

object-file.c:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57const char *odb_loose_path(struct odb_source_loose *loose,
58 struct strbuf *buf,
59 const struct object_id *oid)
60{
61 strbuf_reset(buf);
62 strbuf_addstr(buf, loose->base.path);
63 strbuf_addch(buf, '/');
64 fill_loose_path(buf, oid, loose->base.odb->repo->hash_algo);
65 return buf->buf;
66}
67
68/* Returns 1 if we have successfully freshened the file, 0 otherwise. */
69static int freshen_file(const char *fn)

Callers 8

fetch_objectFunction · 0.85
write_loose_objectFunction · 0.85
new_http_object_requestFunction · 0.85
open_loose_objectFunction · 0.85

Calls 3

strbuf_addstrFunction · 0.85
strbuf_addchFunction · 0.85
fill_loose_pathFunction · 0.85

Tested by

no test coverage detected