Browse Source

Merge "Clean up Init API"

stable-0.10
Chris Aniszczyk 14 years ago committed by Code Review
parent
commit
70162ce14b
  1. 26
      org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java

26
org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java

@ -79,6 +79,19 @@ public class Git {
/** The git repository this class is interacting with */ /** The git repository this class is interacting with */
private final Repository repo; private final Repository repo;
/**
* Returns a command object to execute a {@code init} command
*
* @see <a
* href="http://www.kernel.org/pub/software/scm/git/docs/git-init.html"
* >Git documentation about init</a>
* @return a {@link InitCommand} used to collect all optional parameters and
* to finally execute the {@code init} command
*/
public static InitCommand init() {
return new InitCommand();
}
/** /**
* Constructs a new {@link Git} object which can interact with the specified * Constructs a new {@link Git} object which can interact with the specified
* git repository. All command classes returned by methods of this class * git repository. All command classes returned by methods of this class
@ -282,19 +295,6 @@ public class Git {
return new CheckoutCommand(repo); return new CheckoutCommand(repo);
} }
/**
* Returns a command object to execute a {@code init} command
*
* @see <a
* href="http://www.kernel.org/pub/software/scm/git/docs/git-init.html"
* >Git documentation about init</a>
* @return a {@link InitCommand} used to collect all optional parameters and
* to finally execute the {@code init} command
*/
static public InitCommand init() {
return new InitCommand();
}
/** /**
* @return the git repository this class is interacting with * @return the git repository this class is interacting with
*/ */

Loading…
Cancel
Save