Class GitDiffCommand
- java.lang.Object
- 
- org.apache.maven.scm.command.AbstractCommand
- 
- org.apache.maven.scm.command.diff.AbstractDiffCommand
- 
- org.apache.maven.scm.provider.git.gitexe.command.diff.GitDiffCommand
 
 
 
- 
- All Implemented Interfaces:
- Command,- GitCommand
 
 public class GitDiffCommand extends AbstractDiffCommand implements GitCommand - Author:
- Mark Struberg
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.maven.scm.command.AbstractCommandlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description GitDiffCommand()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.codehaus.plexus.util.cli.CommandlinecreateCommandLine(File workingDirectory, ScmVersion startVersion, ScmVersion endVersion, boolean cached)static org.codehaus.plexus.util.cli.CommandlinecreateDiffRawCommandLine(File workingDirectory, String sha1)Create a CommandLine for executing a git diff --raw command.protected DiffScmResultexecuteDiffCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion)- 
Methods inherited from class org.apache.maven.scm.command.diff.AbstractDiffCommandexecuteCommand
 - 
Methods inherited from class org.apache.maven.scm.command.AbstractCommandexecute
 
- 
 
- 
- 
- 
Constructor Detail- 
GitDiffCommandpublic GitDiffCommand() 
 
- 
 - 
Method Detail- 
executeDiffCommandprotected DiffScmResult executeDiffCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException - Specified by:
- executeDiffCommandin class- AbstractDiffCommand
- Throws:
- ScmException
 
 - 
createCommandLinepublic static org.codehaus.plexus.util.cli.Commandline createCommandLine(File workingDirectory, ScmVersion startVersion, ScmVersion endVersion, boolean cached) - Parameters:
- cached- if- truediff the index to the head, else diff the tree to the index
 
 - 
createDiffRawCommandLinepublic static org.codehaus.plexus.util.cli.Commandline createDiffRawCommandLine(File workingDirectory, String sha1) Create a CommandLine for executing a git diff --raw command. This will output all affected files affected since the given commit and the current version.- Parameters:
- workingDirectory-
 
 
- 
 
-