|
|
|
|
|
|
|
|
import org.eclipse.jgit.lib.Repository; |
|
|
import org.eclipse.jgit.lib.Repository; |
|
|
import org.eclipse.jgit.lib.RepositoryBuilder; |
|
|
import org.eclipse.jgit.lib.RepositoryBuilder; |
|
|
import org.eclipse.jgit.lib.RepositoryCache; |
|
|
import org.eclipse.jgit.lib.RepositoryCache; |
|
|
|
|
|
import org.eclipse.jgit.lib.internal.WorkQueue; |
|
|
|
|
|
import org.eclipse.jgit.nls.NLS; |
|
|
import org.eclipse.jgit.util.FS; |
|
|
import org.eclipse.jgit.util.FS; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
|
|
|
return new InitCommand(); |
|
|
return new InitCommand(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Shutdown JGit and release resources it holds like NLS and thread pools |
|
|
|
|
|
* @since 5.8 |
|
|
|
|
|
*/ |
|
|
|
|
|
public static void shutdown() { |
|
|
|
|
|
WorkQueue.getExecutor().shutdownNow(); |
|
|
|
|
|
NLS.clear(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Construct a new {@link org.eclipse.jgit.api.Git} object which can |
|
|
* Construct a new {@link org.eclipse.jgit.api.Git} object which can |
|
|
* interact with the specified git repository. |
|
|
* interact with the specified git repository. |