Skip to content

Commit c4b208c

Browse files
bagasmegitster
authored andcommitted
archive: describe compression level option
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 <[email protected]> Helped-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent af6d1d6 commit c4b208c

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)