| 1 | #ifndef PACK_REFS_H |
| 2 | #define PACK_REFS_H |
| 3 | |
| 4 | struct repository; |
| 5 | |
| 6 | /* |
| 7 | * Shared usage string for options common to git-pack-refs(1) |
| 8 | * and git-refs-optimize(1). The command-specific part (e.g., "git refs optimize ") |
| 9 | * must be prepended by the caller. |
| 10 | */ |
| 11 | #define PACK_REFS_OPTS \ |
| 12 | "[--all] [--no-prune] [--auto] [--include <pattern>] [--exclude <pattern>]" |
| 13 | |
| 14 | /* |
| 15 | * The core logic for pack-refs and its clones. |
| 16 | */ |
| 17 | int pack_refs_core(int argc, |
| 18 | const char **argv, |
| 19 | const char *prefix, |
| 20 | struct repository *repo, |
| 21 | const char * const *usage_opts); |
| 22 | |
| 23 | #endif /* PACK_REFS_H */ |