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

Function prune_object

prune-packed.c:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static int prune_object(const struct object_id *oid, const char *path,
23 void *data)
24{
25 int *opts = data;
26
27 if (!has_object_pack(the_repository, oid))
28 return 0;
29
30 if (*opts & PRUNE_PACKED_DRY_RUN)
31 printf("rm -f %s\n", path);
32 else
33 unlink_or_warn(path);
34 return 0;
35}
36
37void prune_packed_objects(int opts)
38{

Callers

nothing calls this directly

Calls 2

has_object_packFunction · 0.85
unlink_or_warnFunction · 0.85

Tested by

no test coverage detected