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

Function verify_pack

pack-check.c:197–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197int verify_pack(struct repository *r, struct packed_git *p, verify_fn fn, void *fn_data,
198 struct progress *progress, uint32_t base_count)
199{
200 int err = 0;
201 struct pack_window *w_curs = NULL;
202
203 err |= verify_pack_index(p);
204 if (!p->index_data)
205 return -1;
206
207 err |= verify_packfile(r, p, &w_curs, fn, fn_data, progress, base_count);
208 unuse_pack(&w_curs);
209
210 return err;
211}

Callers 1

cmd_fsckFunction · 0.85

Calls 3

verify_pack_indexFunction · 0.85
verify_packfileFunction · 0.85
unuse_packFunction · 0.85

Tested by

no test coverage detected