Class GitInfoCommand
java.lang.Object
org.apache.maven.scm.command.AbstractCommand
org.apache.maven.scm.provider.git.gitexe.command.info.GitInfoCommand
- All Implemented Interfaces:
Command
,GitCommand
- Since:
- 1.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.codehaus.plexus.util.cli.Commandline
createCommandLine
(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) protected ScmResult
executeCommand
(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) private static int
getRevisionLength
(CommandParameters parameters) Get the revision length from the parametersMethods inherited from class org.apache.maven.scm.command.AbstractCommand
execute, getLogger, setLogger
-
Field Details
-
NO_REVISION_LENGTH
public static final int NO_REVISION_LENGTH- See Also:
-
-
Constructor Details
-
GitInfoCommand
public GitInfoCommand()
-
-
Method Details
-
executeCommand
protected ScmResult executeCommand(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
executeCommand
in classAbstractCommand
- Throws:
ScmException
-
createCommandLine
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
ScmException
-
getRevisionLength
Get the revision length from the parameters- Parameters:
parameters
-- Returns:
- -1 if parameter
CommandParameter.SCM_SHORT_REVISION_LENGTH
is absent,
and otherwise - the length to be applied for the revision formatting - Throws:
ScmException
- Since:
- 1.7
-