| 1667 | } |
| 1668 | |
| 1669 | static int prune(int argc, const char **argv, const char *prefix, |
| 1670 | struct repository *repo UNUSED) |
| 1671 | { |
| 1672 | int dry_run = 0, result = 0; |
| 1673 | struct option options[] = { |
| 1674 | OPT__DRY_RUN(&dry_run, N_("dry run")), |
| 1675 | OPT_END() |
| 1676 | }; |
| 1677 | |
| 1678 | argc = parse_options(argc, argv, prefix, options, |
| 1679 | builtin_remote_prune_usage, 0); |
| 1680 | |
| 1681 | if (argc < 1) |
| 1682 | usage_with_options(builtin_remote_prune_usage, options); |
| 1683 | |
| 1684 | for (; argc; argc--, argv++) |
| 1685 | result |= prune_remote(*argv, dry_run); |
| 1686 | |
| 1687 | return result; |
| 1688 | } |
| 1689 | |
| 1690 | static int get_remote_default(const char *key, const char *value UNUSED, |
| 1691 | const struct config_context *ctx UNUSED, |
nothing calls this directly
no test coverage detected