diff options
author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | 2006-09-09 17:02:38 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-09 13:39:57 -0700 |
commit | 854c4168e77a692dc198311f04bf31939355f2a3 (patch) | |
tree | 60792f6cc1278262ee4947300b05bb4ed7d2c14c /builtin-archive.c | |
parent | 39345a216ff37bda9fb7cec85f6de44069f5205d (diff) | |
download | git-854c4168e77a692dc198311f04bf31939355f2a3.tar.gz |
git-archive: make compression level of ZIP archives configurable
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-archive.c')
-rw-r--r-- | builtin-archive.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/builtin-archive.c b/builtin-archive.c index 651d1bf6d9..b944737550 100644 --- a/builtin-archive.c +++ b/builtin-archive.c @@ -15,8 +15,15 @@ static const char archive_usage[] = \ "git-archive --format=<fmt> [--prefix=<prefix>/] [<extra>] <tree-ish> [path...]"; struct archiver archivers[] = { - { .name = "tar", .write_archive = write_tar_archive }, - { .name = "zip", .write_archive = write_zip_archive }, + { + .name = "tar", + .write_archive = write_tar_archive, + }, + { + .name = "zip", + .write_archive = write_zip_archive, + .parse_extra = parse_extra_zip_args, + }, }; static int run_remote_archiver(struct archiver *ar, int argc, |