org.eclipse.jgit.pgm
Class Main

java.lang.Object
  extended by org.eclipse.jgit.pgm.Main

public class Main
extends java.lang.Object

Command line entry point.


Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Execute the command line.
protected  Repository openGitDir(java.lang.String gitdir)
          Evaluate the --git-dir option and open the repository.
protected  void run(java.lang.String[] argv)
          Parse the command line and execute the requested action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] argv)
Execute the command line.

Parameters:
argv - arguments.

run

protected void run(java.lang.String[] argv)
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.

openGitDir

protected Repository openGitDir(java.lang.String gitdir)
                         throws java.io.IOException
Evaluate the --git-dir option and open the repository.

Parameters:
gitdir - the --git-dir option given on the command line. May be null if it was not supplied.
Returns:
the repository to operate on.
Throws:
java.io.IOException - the repository cannot be opened.


Copyright © 2011. All Rights Reserved.