You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
589 B
22 lines
589 B
19 years ago
|
#include "cache.h"
|
||
17 years ago
|
#include "parse-options.h"
|
||
17 years ago
|
#include "pack-refs.h"
|
||
19 years ago
|
|
||
17 years ago
|
static char const * const pack_refs_usage[] = {
|
||
17 years ago
|
"git pack-refs [options]",
|
||
17 years ago
|
NULL
|
||
|
};
|
||
|
|
||
18 years ago
|
int cmd_pack_refs(int argc, const char **argv, const char *prefix)
|
||
|
{
|
||
17 years ago
|
unsigned int flags = PACK_REFS_PRUNE;
|
||
17 years ago
|
struct option opts[] = {
|
||
17 years ago
|
OPT_BIT(0, "all", &flags, "pack everything", PACK_REFS_ALL),
|
||
|
OPT_BIT(0, "prune", &flags, "prune loose refs (default)", PACK_REFS_PRUNE),
|
||
17 years ago
|
OPT_END(),
|
||
|
};
|
||
16 years ago
|
if (parse_options(argc, argv, prefix, opts, pack_refs_usage, 0))
|
||
17 years ago
|
usage_with_options(pack_refs_usage, opts);
|
||
18 years ago
|
return pack_refs(flags);
|
||
19 years ago
|
}
|