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/.settings | |
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/.settings')
-rw-r--r-- | org.eclipse.jgit.archive/.settings/.api_filters | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.jgit.archive/.settings/.api_filters b/org.eclipse.jgit.archive/.settings/.api_filters new file mode 100644 index 0000000000..f4a934aeb9 --- /dev/null +++ b/org.eclipse.jgit.archive/.settings/.api_filters @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<component id="org.eclipse.jgit.archive" version="2"> + <resource path="src/org/eclipse/jgit/archive/BaseFormat.java" type="org.eclipse.jgit.archive.BaseFormat"> + <filter id="336658481"> + <message_arguments> + <message_argument value="org.eclipse.jgit.archive.BaseFormat"/> + <message_argument value="COMPRESSION_LEVEL"/> + </message_arguments> + </filter> + </resource> +</component> |