mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpg: New option --no-compress as alias for -z0.
This commit is contained in:
parent
bd545346b5
commit
0bed46cae2
2
NEWS
2
NEWS
@ -17,6 +17,8 @@ Noteworthy changes in version 2.2.42 (unreleased)
|
||||
|
||||
* gpg: Make progress work for large files on Windows. [T6534]
|
||||
|
||||
* gpg: New option --no-compress as alias for -z0.
|
||||
|
||||
* gpgsm: Support ECC certificates. [T6253]
|
||||
|
||||
* gpgsm: Print PROGRESS status lines. Add new --input-size-hint.
|
||||
|
19
doc/gpg.texi
19
doc/gpg.texi
@ -1612,24 +1612,29 @@ prevent the creation of a @file{~/.gnupg} homedir.
|
||||
@item -z @var{n}
|
||||
@itemx --compress-level @var{n}
|
||||
@itemx --bzip2-compress-level @var{n}
|
||||
@itemx --no-compress
|
||||
@opindex compress-level
|
||||
@opindex bzip2-compress-level
|
||||
@opindex no-compress
|
||||
Set compression level to @var{n} for the ZIP and ZLIB compression
|
||||
algorithms. The default is to use the default compression level of zlib
|
||||
(normally 6). @option{--bzip2-compress-level} sets the compression level
|
||||
for the BZIP2 compression algorithm (defaulting to 6 as well). This is a
|
||||
different option from @option{--compress-level} since BZIP2 uses a
|
||||
significant amount of memory for each additional compression level.
|
||||
@option{-z} sets both. A value of 0 for @var{n} disables compression.
|
||||
A value of -1 forces compression using the default level.
|
||||
|
||||
Option @option{-z} sets both. A value of 0 for @var{n} disables
|
||||
compression. A value of -1 forces compression using the default
|
||||
level. Option @option{--no-compress} is identical to @option{-z0}.
|
||||
|
||||
Except for the @option{--store} command compression is always used
|
||||
unless @command{gpg} detects that the input is already compressed. To
|
||||
inhibit the use of compression use @option{-z0}; to force compression
|
||||
use @option{-z-1} or option @option{z} with another compression level
|
||||
than the default as indicated by -1. Note that this overriding of the
|
||||
default deection works only with @option{z} and not with the long
|
||||
variant of this option.
|
||||
inhibit the use of compression use @option{-z0} or
|
||||
@option{--no-compress}; to force compression use @option{-z-1} or
|
||||
option @option{z} with another compression level than the default as
|
||||
indicated by -1. Note that this overriding of the default deection
|
||||
works only with @option{z} and not with the long variant of this
|
||||
option.
|
||||
|
||||
|
||||
@item --bzip2-decompress-lowmem
|
||||
|
@ -252,6 +252,7 @@ enum cmd_and_opt_values
|
||||
oCipherAlgo,
|
||||
oDigestAlgo,
|
||||
oCertDigestAlgo,
|
||||
oNoCompress,
|
||||
oCompressAlgo,
|
||||
oCompressLevel,
|
||||
oBZ2CompressLevel,
|
||||
@ -679,6 +680,7 @@ static ARGPARSE_OPTS opts[] = {
|
||||
ARGPARSE_s_n (oLockOnce, "lock-once", "@"),
|
||||
ARGPARSE_s_n (oLockMultiple, "lock-multiple", "@"),
|
||||
ARGPARSE_s_n (oLockNever, "lock-never", "@"),
|
||||
ARGPARSE_s_n (oNoCompress, "no-compress", "@"),
|
||||
ARGPARSE_s_s (oCompressAlgo,"compress-algo", "@"),
|
||||
ARGPARSE_s_s (oCompressAlgo, "compression-algo", "@"), /* Alias */
|
||||
ARGPARSE_s_n (oBZ2DecompressLowmem, "bzip2-decompress-lowmem", "@"),
|
||||
@ -3139,6 +3141,11 @@ main (int argc, char **argv)
|
||||
opt.compress_level = opt.bz2_compress_level = pargs.r.ret_int;
|
||||
opt.explicit_compress_option = 1;
|
||||
break;
|
||||
case oNoCompress:
|
||||
/* --no-compress is the same as -z0 */
|
||||
opt.compress_level = opt.bz2_compress_level = 0;
|
||||
opt.explicit_compress_option = 1;
|
||||
break;
|
||||
case oCompressLevel: opt.compress_level = pargs.r.ret_int; break;
|
||||
case oBZ2CompressLevel: opt.bz2_compress_level = pargs.r.ret_int; break;
|
||||
case oBZ2DecompressLowmem: opt.bz2_decompress_lowmem=1; break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user