Skip to content

Commit a0f604e

Browse files
committed
Merge branch 'bs/archive-doc-compression-level'
Update "git archive" documentation and give explicit mention on the compression level for both zip and tar.gz format. * bs/archive-doc-compression-level: archive: describe compression level option
2 parents f54c172 + c4b208c commit a0f604e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Documentation/git-archive.txt

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,19 @@ BACKEND EXTRA OPTIONS
9393

9494
zip
9595
~~~
96-
-0::
97-
Store the files instead of deflating them.
98-
-9::
99-
Highest and slowest compression level. You can specify any
100-
number from 1 to 9 to adjust compression speed and ratio.
96+
-<digit>::
97+
Specify compression level. Larger values allow the command
98+
to spend more time to compress to smaller size. Supported
99+
values are from `-0` (store-only) to `-9` (best ratio).
100+
Default is `-6` if not given.
101101

102+
tar
103+
~~~
104+
-<number>::
105+
Specify compression level. The value will be passed to the
106+
compression command configured in `tar.<format>.command`. See
107+
manual page of the configured command for the list of supported
108+
levels and the default level if this option isn't specified.
102109

103110
CONFIGURATION
104111
-------------

0 commit comments

Comments
 (0)