public class Main extends Object
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] argv)
Execute the command line.
|
protected Repository |
openGitDir(String aGitdir)
Evaluate the
--git-dir option and open the repository. |
protected void |
run(String[] argv)
Parse the command line and execute the requested action.
|
public static void main(String[] argv) throws Exception
argv - arguments.Exceptionprotected void run(String[] argv) throws Exception
class ExtMain {
public static void main(String[] argv) {
new ExtMain().run(argv);
}
}
argv - arguments.Exceptionprotected Repository openGitDir(String aGitdir) throws IOException
--git-dir option and open the repository.aGitdir - the --git-dir option given on the command line. May be
null if it was not supplied.IOException - the repository cannot be opened.Copyright © 2017 Eclipse JGit Project. All rights reserved.