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 <bagasdotme@gmail.com> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Bagas Sanjaya committed Oct 22, 2021 at 13:45 UTC c4b208c30919c42c29b18388975857330160b972
1 file changed +12 -5
Documentation/git-archive.txt
+12 -5
@@ -93,12 +93,19 @@ BACKEND EXTRA OPTIONS
93
94 zip
95 ~~~
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.
101
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.
109
110 CONFIGURATION
111 -------------