summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org/eclipse
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2013-04-27 15:08:31 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2013-04-27 15:09:32 +0200
commitd0727fc52757c9eb0bd80dd237a19a0f0b86296f (patch)
tree554fac26ee57432d8c001165fd2316b88840f43a /org.eclipse.jgit.pgm/src/org/eclipse
parentbe047307fcd179934e0cd3a0cf4ffe9c758d5370 (diff)
downloadjgit-d0727fc52757c9eb0bd80dd237a19a0f0b86296f.tar.gz
jgit-d0727fc52757c9eb0bd80dd237a19a0f0b86296f.zip
Cleanup imports and javadocs in ArchiveCommand
Change-Id: Icb1cd177e791cc646636a88c67fd9399dfc7030c
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/archive/ArchiveCommand.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/archive/ArchiveCommand.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/archive/ArchiveCommand.java
index 7c2e7c0993..e34d706abb 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/archive/ArchiveCommand.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/archive/ArchiveCommand.java
@@ -42,12 +42,10 @@
*/
package org.eclipse.jgit.pgm.archive;
-import java.lang.String;
import java.io.IOException;
import java.io.OutputStream;
import java.util.EnumMap;
import java.util.Map;
-import java.text.MessageFormat;
import org.apache.commons.compress.archivers.ArchiveOutputStream;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
@@ -55,6 +53,7 @@ import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
import org.apache.commons.compress.archivers.tar.TarConstants;
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
+import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.GitCommand;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.JGitInternalException;
@@ -106,7 +105,10 @@ public class ArchiveCommand extends GitCommand<OutputStream> {
* the --format= option)
*/
public static enum Format {
+ /** Zip format */
ZIP,
+
+ /** Posix TAR-format */
TAR
}
@@ -242,8 +244,9 @@ public class ArchiveCommand extends GitCommand<OutputStream> {
/**
* @param tree
- * the tag, commit, or tree object to produce an archive for
+ * the tag, commit, or tree object to produce an archive for
* @return this
+ * @throws IOException
*/
public ArchiveCommand setTree(ObjectId tree) throws IOException {
final RevWalk rw = new RevWalk(walk.getObjectReader());