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

Function read_chunk

chunk-format.c:190–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190int read_chunk(struct chunkfile *cf,
191 uint32_t chunk_id,
192 chunk_read_fn fn,
193 void *data)
194{
195 int i;
196
197 for (i = 0; i < cf->chunks_nr; i++) {
198 if (cf->chunks[i].id == chunk_id)
199 return fn(cf->chunks[i].start, cf->chunks[i].size, data);
200 }
201
202 return CHUNK_NOT_FOUND;
203}
204
205uint8_t oid_version(const struct git_hash_algo *algop)
206{

Callers 3

parse_commit_graphFunction · 0.85
pair_chunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected