summaryrefslogtreecommitdiff
path: root/pack-refs.h
blob: 5de27e7da847b126ea750cceac007f5da96efd4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PACK_REFS_H
#define PACK_REFS_H

struct repository;

/*
 * Shared usage string for options common to git-pack-refs(1)
 * and git-refs-optimize(1). The command-specific part (e.g., "git refs optimize ")
 * must be prepended by the caller.
 */
#define PACK_REFS_OPTS \
	"[--all] [--no-prune] [--auto] [--include <pattern>] [--exclude <pattern>]"

/*
 * The core logic for pack-refs and its clones.
 */
int pack_refs_core(int argc,
		   const char **argv,
		   const char *prefix,
		   struct repository *repo,
		   const char * const *usage_opts);

#endif /* PACK_REFS_H */