public class GitDiffCommand extends AbstractDiffCommand implements GitCommand
logger
Constructor and Description |
---|
GitDiffCommand() |
Modifier and Type | Method and Description |
---|---|
static org.codehaus.plexus.util.cli.Commandline |
createCommandLine(File workingDirectory,
ScmVersion startVersion,
ScmVersion endVersion,
boolean cached) |
static org.codehaus.plexus.util.cli.Commandline |
createDiffRawCommandLine(File workingDirectory,
String sha1)
Create a CommandLine for executing a git diff --raw command.
|
protected DiffScmResult |
executeDiffCommand(ScmProviderRepository repo,
ScmFileSet fileSet,
ScmVersion startVersion,
ScmVersion endVersion) |
executeCommand
execute
public GitDiffCommand()
protected DiffScmResult executeDiffCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
executeDiffCommand
in class AbstractDiffCommand
ScmException
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(File workingDirectory, ScmVersion startVersion, ScmVersion endVersion, boolean cached)
cached
- if true
diff the index to the head, else diff the tree to the indexpublic static org.codehaus.plexus.util.cli.Commandline createDiffRawCommandLine(File workingDirectory, String sha1)
workingDirectory
- Copyright © 2003–2024 The Apache Software Foundation. All rights reserved.