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-zip-tree.c | |
parent | 39345a216ff37bda9fb7cec85f6de44069f5205d (diff) | |
download | git-854c4168e77a692dc198311f04bf31939355f2a3.tar.gz git-854c4168e77a692dc198311f04bf31939355f2a3.tar.xz |
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-zip-tree.c')
-rw-r--r-- | builtin-zip-tree.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/builtin-zip-tree.c b/builtin-zip-tree.c index 3afb7bde7..4e796338a 100644 --- a/builtin-zip-tree.c +++ b/builtin-zip-tree.c @@ -379,3 +379,16 @@ int write_zip_archive(struct archiver_args *args) return 0; } + +void *parse_extra_zip_args(int argc, const char **argv) +{ + for (; argc > 0; argc--, argv++) { + const char *arg = argv[0]; + + if (arg[0] == '-' && isdigit(arg[1]) && arg[2] == '\0') + zlib_compression_level = arg[1] - '0'; + else + die("Unknown argument for zip format: %s", arg); + } + return NULL; +} |