diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-10-29 15:43:14 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-10-29 15:43:14 -0700 |
| commit | a0f604ee563bdfc956c6313b74e790a827f7b29f (patch) | |
| tree | 6efaa3da17087dde9aa5cf2196fa7113fb99854a | |
| parent | f54c172bb369a412a2c5dc582c46c3acad8bbaaf (diff) | |
| parent | c4b208c30919c42c29b18388975857330160b972 (diff) | |
| download | git-a0f604ee563bdfc956c6313b74e790a827f7b29f.tar.gz | |
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
| -rw-r--r-- | Documentation/git-archive.txt | 17 |
1 files changed, 12 insertions, 5 deletions
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. +-<digit>:: + 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 +~~~ +-<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 ------------- |
