MCPcopy Index your code
hub / github.com/git/git / grep_source_load_oid

Function grep_source_load_oid

grep.c:1931–1944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1929}
1930
1931static int grep_source_load_oid(struct grep_source *gs)
1932{
1933 enum object_type type;
1934 size_t size_st = 0;
1935
1936 gs->buf = odb_read_object(gs->repo->objects, gs->identifier,
1937 &type, &size_st);
1938 gs->size = cast_size_t_to_ulong(size_st);
1939 if (!gs->buf)
1940 return error(_("'%s': unable to read %s"),
1941 gs->name,
1942 oid_to_hex(gs->identifier));
1943 return 0;
1944}
1945
1946static int grep_source_load_file(struct grep_source *gs)
1947{

Callers 1

grep_source_loadFunction · 0.85

Calls 4

odb_read_objectFunction · 0.85
cast_size_t_to_ulongFunction · 0.85
errorFunction · 0.85
oid_to_hexFunction · 0.85

Tested by

no test coverage detected