Class CliGitBackend
java.lang.Object
io.github.jbastgen.stemma.git.cli.CliGitBackend
- All Implemented Interfaces:
io.github.jbastgen.stemma.git.api.GitBackend
public final class CliGitBackend
extends Object
implements io.github.jbastgen.stemma.git.api.GitBackend
Backend that drives an installed git executable. Unlike the built-in JGit backend it needs a
GitInstallation, so it is created by the application (from the user's settings or by
GitDiscovery) rather than through ServiceLoader.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<io.github.jbastgen.stemma.git.api.Capability> io.github.jbastgen.stemma.git.api.GitRepositorycloneRepository(String url, Path directory) voidconfigure(io.github.jbastgen.stemma.git.api.GitOptions options) id()io.github.jbastgen.stemma.git.api.GitRepositoryThe installation of git this backend runs.booleanisRepository(Path directory) io.github.jbastgen.stemma.git.api.GitRepositorystatic longHow many git processes have been started so far (all backends of this kind together).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.jbastgen.stemma.git.api.GitBackend
supports
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
CliGitBackend
- Throws:
io.github.jbastgen.stemma.git.api.GitException- if the installation is older thanGitVersion.MINIMUM
-
-
Method Details
-
processesStarted
public static long processesStarted()How many git processes have been started so far (all backends of this kind together). -
installation
The installation of git this backend runs. -
configure
public void configure(io.github.jbastgen.stemma.git.api.GitOptions options) - Specified by:
configurein interfaceio.github.jbastgen.stemma.git.api.GitBackend
-
id
- Specified by:
idin interfaceio.github.jbastgen.stemma.git.api.GitBackend
-
displayName
- Specified by:
displayNamein interfaceio.github.jbastgen.stemma.git.api.GitBackend
-
capabilities
- Specified by:
capabilitiesin interfaceio.github.jbastgen.stemma.git.api.GitBackend
-
isRepository
- Specified by:
isRepositoryin interfaceio.github.jbastgen.stemma.git.api.GitBackend
-
open
- Specified by:
openin interfaceio.github.jbastgen.stemma.git.api.GitBackend
-
init
- Specified by:
initin interfaceio.github.jbastgen.stemma.git.api.GitBackend
-
cloneRepository
- Specified by:
cloneRepositoryin interfaceio.github.jbastgen.stemma.git.api.GitBackend
-