All Implemented Interfaces:
Command, GitCommand

public class GitDiffCommand extends AbstractDiffCommand implements GitCommand
  • Constructor Details

    • GitDiffCommand

      public GitDiffCommand()
  • Method Details

    • 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 org.codehaus.plexus.util.cli.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 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 -