Class GitDiffCommand

    • Constructor Detail

      • GitDiffCommand

        public GitDiffCommand()
    • Method Detail

      • createCommandLine

        public static org.codehaus.plexus.util.cli.Commandline createCommandLine​(java.io.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​(java.io.File workingDirectory,
                                                                                        java.lang.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 -