diff options
author | Chris Aniszczyk <caniszczyk@gmail.com> | 2010-12-07 10:57:36 -0500 |
---|---|---|
committer | Code Review <codereview-daemon@eclipse.org> | 2010-12-07 10:57:36 -0500 |
commit | 70162ce14bd0447dac7adc5463813e8f758d83cf (patch) | |
tree | 946df2fd6e2de0197e47a452ee9a82361bc09aa0 | |
parent | 8bbd4f1badd8b9d607a9078a7311b2064a9b0ac7 (diff) | |
parent | db8cc4c84e2f304cad11d69a74c6290ffca62d4f (diff) | |
download | jgit-70162ce14bd0447dac7adc5463813e8f758d83cf.tar.gz jgit-70162ce14bd0447dac7adc5463813e8f758d83cf.zip |
Merge "Clean up Init API"
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java index 8564570d34..f4ed2a7927 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java @@ -80,6 +80,19 @@ public class Git { 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 * git repository. All command classes returned by methods of this class * will always interact with this git repository. @@ -283,19 +296,6 @@ public class Git { } /** - * 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 */ public Repository getRepository() { |