From: Bagas Sanjaya Date: Fri, 22 Oct 2021 06:45:44 +0000 (+0700) Subject: archive: describe compression level option X-Git-Tag: v2.34.0-rc0~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4b208c30919c42c29b18388975857330160b972;p=thirdparty%2Fgit.git archive: describe compression level option Describe the only 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 Helped-by: Eric Sunshine Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt index 9f8172828d..bc4e76a783 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. +-:: + Specify compression level. Larger values allow the command + to spend more time to compress to smaller size. Supported + values are from `-0` (store-only) to `-9` (best ratio). + Default is `-6` if not given. +tar +~~~ +-:: + Specify compression level. The value will be passed to the + compression command configured in `tar..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 -------------