threads / patch / 56681

patcharchive: rewrite description for compression level option

Subject: [PATCH] archive: rewrite description for compression level option

## tl;dr

One message between Oct 11, 2021 and Oct 11, 2021. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Bagas Sanjaya· Oct 11, 2021, 11:24 UTC · lore

Currently, the description of compression level option (`-<number>` or `-#`) only specifies two level (`-0` and `-9`), giving the impression that only both levels are accepted, although other level number can be specified. Rewrite the description.

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 Documentation/git-archive.txt | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
Show changes to Documentation/git-archive.txt +5 −6
diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt
index 9f8172828d..097b999bbd 100644
--- a/Documentation/git-archive.txt
+++ b/Documentation/git-archive.txt
@@ -93,12 +93,11 @@ 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.
-
+-<number>::
+	Select the compression level. Higher number indicates better
+	compression at the expense of longer time to compress. Valid
+	values are from 0 to 9. If 0 is selected, the files will be
+	stored without compressing.
 
 CONFIGURATION
 -------------

base-commit: 106298f7f9cca4158a980de149ef217751e1f943
-- 
An old man doll... just what I always wanted! - Clara

← back to recent threads