瀏覽代碼

Clean up Init API

Static accessors should come before a constructor.

Change-Id: Iee1051ce4f2038f19a08741e7a3a33f06a97a3c0
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
tags/v0.10.1
Chris Aniszczyk 13 年之前
父節點
當前提交
db8cc4c84e
共有 1 個檔案被更改,包括 13 行新增13 行删除
  1. 13
    13
      org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java

+ 13
- 13
org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java 查看文件

/** 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
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…
取消
儲存