diff options
author | Youssef Elghareeb <ghareeb@google.com> | 2021-01-22 15:30:25 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2021-01-28 02:57:22 -0500 |
commit | 6f82690aaf2be783be6d77f0903788ff0832472a (patch) | |
tree | 375f47dab22823d2dc3fe54b762178c7bbbba6bf /org.eclipse.jgit.archive/resources | |
parent | c29ec3447d3339e57a46e02423c44ba3638a197e (diff) | |
download | jgit-6f82690aaf2be783be6d77f0903788ff0832472a.tar.gz jgit-6f82690aaf2be783be6d77f0903788ff0832472a.zip |
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 <ghareeb@google.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.archive/resources')
-rw-r--r-- | org.eclipse.jgit.archive/resources/org/eclipse/jgit/archive/internal/ArchiveText.properties | 1 |
1 files changed, 1 insertions, 0 deletions
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} |