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"Exception
public static List<String> execute(String str, org.eclipse.jgit.lib.Repository db) throws Exception
Exception
public static CLIGitCommand.Result executeRaw(String str, org.eclipse.jgit.lib.Repository db) throws Exception
Exception
public static List<String> executeUnchecked(String str, org.eclipse.jgit.lib.Repository db) throws Exception
Exception
protected org.eclipse.jgit.lib.Repository openGitDir(String aGitdir) throws IOException
openGitDir
in class Main
IOException
Copyright © 2016 Eclipse JGit Project. All rights reserved.