public class CLIGitCommand extends Main
| Modifier and Type | Class and Description |
|---|---|
static class |
CLIGitCommand.Result |
| Constructor and Description |
|---|
CLIGitCommand(org.eclipse.jgit.lib.Repository db) |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
execute(String str,
org.eclipse.jgit.lib.Repository db) |
static CLIGitCommand.Result |
executeRaw(String str,
org.eclipse.jgit.lib.Repository db) |
static List<String> |
executeUnchecked(String str,
org.eclipse.jgit.lib.Repository db) |
static void |
main(String[] args)
Executes git commands (with arguments) specified on the command line.
|
protected org.eclipse.jgit.lib.Repository |
openGitDir(String aGitdir) |
public static void main(String[] args) throws Exception
args - each element in the array must be a valid git command line,
e.g. "git branch -h"Exceptionpublic static List<String> execute(String str, org.eclipse.jgit.lib.Repository db) throws Exception
Exceptionpublic static CLIGitCommand.Result executeRaw(String str, org.eclipse.jgit.lib.Repository db) throws Exception
Exceptionpublic static List<String> executeUnchecked(String str, org.eclipse.jgit.lib.Repository db) throws Exception
Exceptionprotected org.eclipse.jgit.lib.Repository openGitDir(String aGitdir) throws IOException
openGitDir in class MainIOExceptionCopyright © 2016 Eclipse JGit Project. All rights reserved.