Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (19 sloc) 0.589 kb
e1e22e37 » Linus Torvalds
2006-09-11 Start handling references internally as a sorted in-memory list
1 #include "cache.h"
b2565ae5 » MadCoder
2007-10-15 Make builtin-pack-refs.c use parse_options.
2 #include "parse-options.h"
94e724a7 » jherland
2008-06-15 Move pack_refs() and friends into libgit
3 #include "pack-refs.h"
96884601 » Junio C Hamano
2006-09-21 git-pack-refs --prune
4
b2565ae5 » MadCoder
2007-10-15 Make builtin-pack-refs.c use parse_options.
5 static char const * const pack_refs_usage[] = {
1b1dd23f » sbeyer
2008-07-13 Make usage strings dash-less
6 "git pack-refs [options]",
b2565ae5 » MadCoder
2007-10-15 Make builtin-pack-refs.c use parse_options.
7 NULL
8 };
9
99b5a79e » torvalds
2007-05-26 Make the pack-refs interfaces usable from outside
10 int cmd_pack_refs(int argc, const char **argv, const char *prefix)
11 {
68dce6e9 » MadCoder
2007-11-07 Use OPT_BIT in builtin-pack-refs
12 unsigned int flags = PACK_REFS_PRUNE;
b2565ae5 » MadCoder
2007-10-15 Make builtin-pack-refs.c use parse_options.
13 struct option opts[] = {
68dce6e9 » MadCoder
2007-11-07 Use OPT_BIT in builtin-pack-refs
14 OPT_BIT(0, "all", &flags, "pack everything", PACK_REFS_ALL),
15 OPT_BIT(0, "prune", &flags, "prune loose refs (default)", PACK_REFS_PRUNE),
b2565ae5 » MadCoder
2007-10-15 Make builtin-pack-refs.c use parse_options.
16 OPT_END(),
17 };
37782920 » bebarino
2009-05-23 parse-opts: prepare for OPT_FILENAME
18 if (parse_options(argc, argv, prefix, opts, pack_refs_usage, 0))
b2565ae5 » MadCoder
2007-10-15 Make builtin-pack-refs.c use parse_options.
19 usage_with_options(pack_refs_usage, opts);
99b5a79e » torvalds
2007-05-26 Make the pack-refs interfaces usable from outside
20 return pack_refs(flags);
e1e22e37 » Linus Torvalds
2006-09-11 Start handling references internally as a sorted in-memory list
21 }
Something went wrong with that request. Please try again.