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

Function prune

builtin/remote.c:1669–1688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1667}
1668
1669static 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
1690static int get_remote_default(const char *key, const char *value UNUSED,
1691 const struct config_context *ctx UNUSED,

Callers

nothing calls this directly

Calls 3

parse_optionsFunction · 0.85
usage_with_optionsFunction · 0.85
prune_remoteFunction · 0.85

Tested by

no test coverage detected