| 188 | } |
| 189 | |
| 190 | int 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 | |
| 205 | uint8_t oid_version(const struct git_hash_algo *algop) |
| 206 | { |
no outgoing calls
no test coverage detected