]> source.dussan.org Git - jgit.git/commit
Allow pgm Main to be extended 57/1757/2
authorShawn O. Pearce <spearce@spearce.org>
Sun, 17 Oct 2010 04:33:06 +0000 (21:33 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 17 Oct 2010 04:47:10 +0000 (21:47 -0700)
commit0b51a4568835e95fe2fc88f9458d4a7368a9c691
treee0d7e0aaf30a3726e871006b0b32c203ba41fcf4
parent9b4876cedf430e454b99da5410e2a9d624f35129
Allow pgm Main to be extended

3rd party packages that use repository types other than FileRepository
may wish to extend our pgm package and implement their own resolution
scheme for repository "names" that are passed in by the --git-dir
command line option.  Make that possible by allowing the package to
extend the Main class and override the lookup.

This is primarily useful when developing new storage implementations
and trying to experiment with the results, without linking all of it
into the core JGit package.

Change-Id: Id30e168da16341e5da43365688a63aa30c7b7e2c
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java