Class GitChangeLogCommand
- java.lang.Object
-
- org.apache.maven.scm.command.AbstractCommand
-
- org.apache.maven.scm.command.changelog.AbstractChangeLogCommand
-
- org.apache.maven.scm.provider.git.gitexe.command.changelog.GitChangeLogCommand
-
- All Implemented Interfaces:
ChangeLogCommand
,Command
,GitCommand
public class GitChangeLogCommand extends AbstractChangeLogCommand implements GitCommand
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
DATE_FORMAT
-
Constructor Summary
Constructors Constructor Description GitChangeLogCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.codehaus.plexus.util.cli.Commandline
createCommandLine(GitScmProviderRepository repository, java.io.File workingDirectory, ScmBranch branch, java.util.Date startDate, java.util.Date endDate, ScmVersion startVersion, ScmVersion endVersion)
This method creates the commandline for the git-whatchanged command.(package private) static org.codehaus.plexus.util.cli.Commandline
createCommandLine(GitScmProviderRepository repository, java.io.File workingDirectory, ScmBranch branch, java.util.Date startDate, java.util.Date endDate, ScmVersion startVersion, ScmVersion endVersion, java.lang.Integer limit)
(package private) static org.codehaus.plexus.util.cli.Commandline
createCommandLine(GitScmProviderRepository repository, java.io.File workingDirectory, ScmBranch branch, java.util.Date startDate, java.util.Date endDate, ScmVersion startVersion, ScmVersion endVersion, java.lang.Integer limit, ScmVersion version)
protected ChangeLogScmResult
executeChangeLogCommand(ChangeLogScmRequest request)
protected ChangeLogScmResult
executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.util.Date startDate, java.util.Date endDate, ScmBranch branch, java.lang.String datePattern)
protected ChangeLogScmResult
executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.util.Date startDate, java.util.Date endDate, ScmBranch branch, java.lang.String datePattern, ScmVersion startVersion, ScmVersion endVersion)
protected ChangeLogScmResult
executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.util.Date startDate, java.util.Date endDate, ScmBranch branch, java.lang.String datePattern, ScmVersion startVersion, ScmVersion endVersion, java.lang.Integer limit)
protected ChangeLogScmResult
executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.util.Date startDate, java.util.Date endDate, ScmBranch branch, java.lang.String datePattern, ScmVersion startVersion, ScmVersion endVersion, java.lang.Integer limit, ScmVersion version)
protected ChangeLogScmResult
executeChangeLogCommand(ScmProviderRepository repository, ScmFileSet fileSet, ScmVersion version, java.lang.String datePattern)
protected ChangeLogScmResult
executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion, java.lang.String datePattern)
ScmResult
executeCommand(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)
-
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute, getLogger, setLogger
-
-
-
-
Field Detail
-
DATE_FORMAT
private static final java.lang.String DATE_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
executeCommand
public ScmResult executeCommand(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
Description copied from class:AbstractChangeLogCommand
- Specified by:
executeCommand
in interfaceChangeLogCommand
- Overrides:
executeCommand
in classAbstractChangeLogCommand
- Throws:
ScmException
-
executeChangeLogCommand
protected ChangeLogScmResult executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion, java.lang.String datePattern) throws ScmException
- Overrides:
executeChangeLogCommand
in classAbstractChangeLogCommand
- Throws:
ScmException
-
executeChangeLogCommand
protected ChangeLogScmResult executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.util.Date startDate, java.util.Date endDate, ScmBranch branch, java.lang.String datePattern) throws ScmException
- Specified by:
executeChangeLogCommand
in classAbstractChangeLogCommand
- Throws:
ScmException
-
executeChangeLogCommand
protected ChangeLogScmResult executeChangeLogCommand(ScmProviderRepository repository, ScmFileSet fileSet, ScmVersion version, java.lang.String datePattern) throws ScmException
- Overrides:
executeChangeLogCommand
in classAbstractChangeLogCommand
- Throws:
ScmException
-
executeChangeLogCommand
protected ChangeLogScmResult executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.util.Date startDate, java.util.Date endDate, ScmBranch branch, java.lang.String datePattern, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
- Throws:
ScmException
-
executeChangeLogCommand
protected ChangeLogScmResult executeChangeLogCommand(ChangeLogScmRequest request) throws ScmException
- Overrides:
executeChangeLogCommand
in classAbstractChangeLogCommand
- Throws:
ScmException
-
executeChangeLogCommand
protected ChangeLogScmResult executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.util.Date startDate, java.util.Date endDate, ScmBranch branch, java.lang.String datePattern, ScmVersion startVersion, ScmVersion endVersion, java.lang.Integer limit) throws ScmException
- Throws:
ScmException
-
executeChangeLogCommand
protected ChangeLogScmResult executeChangeLogCommand(ScmProviderRepository repo, ScmFileSet fileSet, java.util.Date startDate, java.util.Date endDate, ScmBranch branch, java.lang.String datePattern, ScmVersion startVersion, ScmVersion endVersion, java.lang.Integer limit, ScmVersion version) throws ScmException
- Throws:
ScmException
-
createCommandLine
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, java.io.File workingDirectory, ScmBranch branch, java.util.Date startDate, java.util.Date endDate, ScmVersion startVersion, ScmVersion endVersion)
This method creates the commandline for the git-whatchanged command.Since it uses --since and --until for the start and end date, the branch and version parameters can be used simultanously.
- Parameters:
repository
- Provider repositry to use.workingDirectory
- Working copy directory.branch
- Branch to run command on.startDate
- Start date of log entries.endDate
- End date of log entries.startVersion
- Start version of log entries.endVersion
- End version of log entries.- Returns:
- Command line.
-
createCommandLine
static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, java.io.File workingDirectory, ScmBranch branch, java.util.Date startDate, java.util.Date endDate, ScmVersion startVersion, ScmVersion endVersion, java.lang.Integer limit)
-
createCommandLine
static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, java.io.File workingDirectory, ScmBranch branch, java.util.Date startDate, java.util.Date endDate, ScmVersion startVersion, ScmVersion endVersion, java.lang.Integer limit, ScmVersion version)
-
-