org.apache.maven.scm.provider.git.gitexe.command.diff
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
- Version:
- $Id: GitDiffCommand.java 1241527 2012-02-07 17:29:40Z struberg $
- Author:
- Mark Struberg
Fields inherited from interface org.apache.maven.scm.command.Command |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GitDiffCommand
public GitDiffCommand()
executeDiffCommand
protected DiffScmResult executeDiffCommand(ScmProviderRepository repo,
ScmFileSet fileSet,
ScmVersion startVersion,
ScmVersion endVersion)
throws ScmException
-
- Specified by:
executeDiffCommand
in class AbstractDiffCommand
- Throws:
ScmException
createCommandLine
public static Commandline createCommandLine(File workingDirectory,
ScmVersion startVersion,
ScmVersion endVersion,
boolean cached)
- Parameters:
cached
- if true
diff the index to the head, else diff the tree to the index
createDiffRawCommandLine
public static 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
-
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.