From 6f82690aaf2be783be6d77f0903788ff0832472a Mon Sep 17 00:00:00 2001 From: Youssef Elghareeb Date: Fri, 22 Jan 2021 15:30:25 +0100 Subject: Add the "compression-level" option to all ArchiveCommand formats Different archive formats support a compression level in the range [0-9]. The value 0 is for lowest compressions and 9 for highest. Highest levels produce output files of smaller sizes but require more memory to do the compression. This change allows passing a "compression-level" option to the git archive command and implements using it for different file formats. Change-Id: I5758f691c37ba630dbac24db67bb7da827bbc8e1 Signed-off-by: Youssef Elghareeb Signed-off-by: Matthias Sohn --- .../resources/org/eclipse/jgit/archive/internal/ArchiveText.properties | 1 + 1 file changed, 1 insertion(+) (limited to 'org.eclipse.jgit.archive/resources/org/eclipse') diff --git a/org.eclipse.jgit.archive/resources/org/eclipse/jgit/archive/internal/ArchiveText.properties b/org.eclipse.jgit.archive/resources/org/eclipse/jgit/archive/internal/ArchiveText.properties index 3b50bb4fd5..e6e122734a 100644 --- a/org.eclipse.jgit.archive/resources/org/eclipse/jgit/archive/internal/ArchiveText.properties +++ b/org.eclipse.jgit.archive/resources/org/eclipse/jgit/archive/internal/ArchiveText.properties @@ -1,3 +1,4 @@ cannotSetOption=Cannot set option: {0} +invalidCompressionLevel=Invalid compression level: {0} pathDoesNotMatchMode=Path {0} does not match mode {1} unsupportedMode=Unsupported mode {0} -- cgit v1.2.3