| 20 | } |
| 21 | |
| 22 | static 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 | |
| 37 | void prune_packed_objects(int opts) |
| 38 | { |
nothing calls this directly
no test coverage detected