A patch to add a "--compress-level" option

Mark Atwood mra at pobox.com
Sun Oct 8 01:19:11 CEST 2000


I dont know if this is the right place to send this. If not, tell me
where's better. This was so simple to add, I'm surprised that it
wasn't already part of the code.

This patch to gpg 1.0.3 adds a new option, "--compress-level", which
controls the compression level used by zlib. It's just like the
existing -z option, except that it can also be set in the
~/.gnupg/options file, which is really the better place to put it.

If you have CPU cycles to burn (and we all do), just put
"compress-level 9" in your options file.


diff -urN gnupg-1.0.3.orig/doc/gpg.sgml gnupg-1.0.3/doc/gpg.sgml
--- gnupg-1.0.3.orig/doc/gpg.sgml	Wed Sep  6 04:57:34 2000
+++ gnupg-1.0.3/doc/gpg.sgml	Sat Oct  7 22:45:34 2000
@@ -676,7 +676,7 @@
 
 
 <varlistentry>
-<term>-z &ParmN;</term>
+<term>-z, --compress-level &ParmN;</term>
 <listitem><para>
 Set compression level to &ParmN;. A value of 0 for &ParmN;
 disables compression. Default is to use the default
diff -urN gnupg-1.0.3.orig/g10/g10.c gnupg-1.0.3/g10/g10.c
--- gnupg-1.0.3.orig/g10/g10.c	Thu Sep 14 03:45:01 2000
+++ gnupg-1.0.3/g10/g10.c	Tue Oct  3 13:17:44 2000
@@ -268,7 +268,7 @@
     { oEncryptTo, "encrypt-to", 2, "@" },
     { oNoEncryptTo, "no-encrypt-to", 0, "@" },
     { oUser, "local-user",2, N_("use this user-id to sign or decrypt")},
-    { oCompress, NULL,	      1, N_("|N|set compress level N (0 disables)") },
+    { oCompress, "compress-level", 1, N_("|N|set compress level N (0 disables)") },
     { oTextmodeShort, NULL,   0, "@"},
     { oTextmode, "textmode",  0, N_("use canonical text mode")},
     { oOutput, "output",    2, N_("use as output file")},



More information about the Gnupg-devel mailing list