]> source.dussan.org Git - jgit.git/commitdiff
Document CloneCommand.setDirectory(null) and setGitDir(null) more clearly 79/49979/2
authorJonathan Nieder <jrn@google.com>
Wed, 10 Jun 2015 22:52:34 +0000 (15:52 -0700)
committerJonathan Nieder <jrn@google.com>
Thu, 11 Jun 2015 17:44:19 +0000 (10:44 -0700)
Change-Id: I74757ca68eaa941833846a7c8d983b4e996fa207
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java

index 53901f589ca0306c0f9f69a7050f740fc4281283..cd0bf33ea67f11dc73627d31da0340f279aec0fc 100644 (file)
@@ -346,7 +346,8 @@ public class CloneCommand extends TransportCommand<CloneCommand, Git> {
         * @see URIish#getHumanishName()
         *
         * @param directory
-        *            the directory to clone to
+        *            the directory to clone to, or {@code null} if the directory
+        *            name should be taken from the source uri
         * @return this instance
         * @throws IllegalStateException
         *             if the combination of directory, gitDir and bare is illegal.
@@ -362,7 +363,8 @@ public class CloneCommand extends TransportCommand<CloneCommand, Git> {
 
        /**
         * @param gitDir
-        *            the repository meta directory
+        *            the repository meta directory, or {@code null} to choose one
+        *            automatically at clone time
         * @return this instance
         * @throws IllegalStateException
         *             if the combination of directory, gitDir and bare is illegal.