Class GitStatusCommand
java.lang.Object
org.apache.maven.scm.command.AbstractCommand
org.apache.maven.scm.command.status.AbstractStatusCommand
org.apache.maven.scm.provider.git.gitexe.command.status.GitStatusCommand
- All Implemented Interfaces:
Command
,GitCommand
- Author:
- Brett Porter
-
Field Summary
Fields inherited from class org.apache.maven.scm.command.AbstractCommand
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.codehaus.plexus.util.cli.Commandline
createCommandLine
(GitScmProviderRepository repository, ScmFileSet fileSet) static org.codehaus.plexus.util.cli.Commandline
createRevparseShowPrefix
(ScmFileSet fileSet) protected StatusScmResult
executeStatusCommand
(ScmProviderRepository repo, ScmFileSet fileSet) static URI
getRelativeCWD
(org.slf4j.Logger logger, ScmFileSet fileSet) Get the dir relative to the repository root.Methods inherited from class org.apache.maven.scm.command.status.AbstractStatusCommand
executeCommand
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute
-
Constructor Details
-
GitStatusCommand
public GitStatusCommand()
-
-
Method Details
-
executeStatusCommand
protected StatusScmResult executeStatusCommand(ScmProviderRepository repo, ScmFileSet fileSet) throws ScmException - Specified by:
executeStatusCommand
in classAbstractStatusCommand
- Throws:
ScmException
-
getRelativeCWD
Get the dir relative to the repository root.- Parameters:
logger
- the caller command logger.fileSet
- in which subdir to execute.- Returns:
- the relative URI.
- Throws:
ScmException
- if execute() fails.
-
createCommandLine
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, ScmFileSet fileSet) -
createRevparseShowPrefix
-