Browse Source

Document CloneCommand.setDirectory(null) and setGitDir(null) more clearly

Change-Id: I74757ca68eaa941833846a7c8d983b4e996fa207
Signed-off-by: Jonathan Nieder <jrn@google.com>
stable-4.1
Jonathan Nieder 10 years ago
parent
commit
e70cf61eb6
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java

6
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java

@ -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.

Loading…
Cancel
Save