git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH v4] archive: describe compression level option
@ 2021-10-22  6:45 Bagas Sanjaya
  2021-10-22  6:57 ` Eric Sunshine
  0 siblings, 1 reply; 6+ messages in thread
From: Bagas Sanjaya @ 2021-10-22  6:45 UTC (permalink / raw)
  To: git
  Cc: vagabon.xyz, Junio C Hamano,
	Ævar Arnfjörð Bjarmason, René Scharfe,
	Jeff King, Bagas Sanjaya

Describe the only extra option in `git archive`, that is the compression
level option. Previously this option is only described for zip backend;
add description also for tar backend.

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 Changes since v3 [1]:
     - use smaller size - slower time term
     - use <digit> and <number> for compression level

 [1]: https://lore.kernel.org/git/xmqq8ryqxo72.fsf@gitster.g/T/#t
 Documentation/git-archive.txt | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt
index 9f8172828d..ecfae7e268 100644
--- a/Documentation/git-archive.txt
+++ b/Documentation/git-archive.txt
@@ -93,12 +93,19 @@ BACKEND EXTRA OPTIONS
 
 zip
 ~~~
--0::
-	Store the files instead of deflating them.
--9::
-	Highest and slowest compression level.  You can specify any
-	number from 1 to 9 to adjust compression speed and ratio.
+-<digit>::
+	Regulate compression level using the specified <digit>. Higher
+	values enables smaller size at the expense of slower time.
+	Supported values are from `-0` (store-only) to `-9` (best ratio).
+	Default is `-6` if isn't specified.
 
+tar
+~~~
+-<number>::
+	Specify compression level. The value will be passed to the
+	compression command configured in `tar.<format>.command`. See
+	manual page of the configured command for the list of supported
+	levels and the default level if this option isn't specified.
 
 CONFIGURATION
 -------------

base-commit: f443b226ca681d87a3a31e245a70e6bc2769123c
-- 
An old man doll... just what I always wanted! - Clara


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-25 17:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22  6:45 [PATCH v4] archive: describe compression level option Bagas Sanjaya
2021-10-22  6:57 ` Eric Sunshine
2021-10-23 21:13   ` Junio C Hamano
2021-10-25 16:39     ` Eric Sunshine
2021-10-25 17:48       ` Junio C Hamano
2021-10-25 17:57         ` Eric Sunshine

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).