diff options
author | Jeff King <peff@peff.net> | 2020-11-16 19:41:12 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-17 00:57:43 +0100 |
commit | 63f4d5cf571f4bec137d7e141bdd0f1d330371f4 (patch) | |
tree | 2e79ffcae3645fe7bb634ff359cda3ad69b204b6 /builtin | |
parent | Fifth batch (diff) | |
download | git-63f4d5cf571f4bec137d7e141bdd0f1d330371f4.tar.xz git-63f4d5cf571f4bec137d7e141bdd0f1d330371f4.zip |
repack: make "exts" array available outside cmd_repack()
We'll use it in a helper function soon.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/repack.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/builtin/repack.c b/builtin/repack.c index 01e7767c79..03e2c2c44b 100644 --- a/builtin/repack.c +++ b/builtin/repack.c @@ -202,6 +202,16 @@ static int write_oid(const struct object_id *oid, struct packed_git *pack, return 0; } +static struct { + const char *name; + unsigned optional:1; +} exts[] = { + {".pack"}, + {".idx"}, + {".bitmap", 1}, + {".promisor", 1}, +}; + static void repack_promisor_objects(const struct pack_objects_args *args, struct string_list *names) { @@ -265,15 +275,6 @@ static void repack_promisor_objects(const struct pack_objects_args *args, int cmd_repack(int argc, const char **argv, const char *prefix) { - struct { - const char *name; - unsigned optional:1; - } exts[] = { - {".pack"}, - {".idx"}, - {".bitmap", 1}, - {".promisor", 1}, - }; struct child_process cmd = CHILD_PROCESS_INIT; struct string_list_item *item; struct string_list names = STRING_LIST_INIT_DUP; |