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

Function add_unreachable_loose_objects

builtin/pack-objects.c:4564–4568  ·  view source on GitHub ↗

* We actually don't even have to worry about reachability here. * add_object_entry will weed out duplicates, so we just add every * loose object we find. */

Source from the content-addressed store, hash-verified

4562 * loose object we find.
4563 */
4564static void add_unreachable_loose_objects(struct rev_info *revs)
4565{
4566 for_each_loose_file_in_source(the_repository->objects->sources,
4567 add_loose_object, NULL, NULL, revs);
4568}
4569
4570static int has_sha1_pack_kept_or_nonlocal(const struct object_id *oid)
4571{

Callers 3

read_stdin_packsFunction · 0.85
enumerate_cruft_objectsFunction · 0.85
get_object_listFunction · 0.85

Calls 1

Tested by

no test coverage detected