Class Main
java.lang.Object
org.eclipse.jgit.pgm.Main
- Direct Known Subclasses:
CLIGitCommand
Command line entry point.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidExecute the command line.protected RepositoryopenGitDir(String aGitdir) Evaluate the--git-diroption and open the repository.protected voidParse the command line and execute the requested action.
-
Constructor Details
-
Main
public Main()Constructor for Main.
-
-
Method Details
-
main
-
run
Parse the command line and execute the requested action. Subclasses should allocate themselves and then invoke this method:class ExtMain { public static void main(String[] argv) { new ExtMain().run(argv); } }- Parameters:
argv- arguments.- Throws:
Exception
-
openGitDir
Evaluate the--git-diroption and open the repository.- Parameters:
aGitdir- the--git-diroption given on the command line. May be null if it was not supplied.- Returns:
- the repository to operate on.
- Throws:
IOException- the repository cannot be opened.
-