Class DiffTool

    • Constructor Detail

      • DiffTool

        DiffTool()
    • Method Detail

      • setPrompt

        void setPrompt​(boolean on)
      • noPrompt

        void noPrompt​(boolean on)
      • setGui

        void setGui​(boolean on)
      • noGui

        void noGui​(boolean on)
      • setTrustExitCode

        void setTrustExitCode​(boolean on)
      • noTrustExitCode

        void noTrustExitCode​(boolean on)
      • init

        protected void init​(Repository repository,
                            java.lang.String gitDir)
        Description copied from class: TextBuiltin
        Initialize the command to work with a repository.
        Overrides:
        init in class TextBuiltin
        Parameters:
        repository - the opened repository that the command should work on.
        gitDir - value of the --git-dir command line option, if repository is null.
      • compare

        private void compare​(java.util.List<DiffEntry> files,
                             boolean showPrompt,
                             java.lang.String toolNamePrompt)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • isLaunchCompare

        private boolean isLaunchCompare​(int fileIndex,
                                        int fileCount,
                                        java.lang.String fileName,
                                        java.lang.String toolNamePrompt)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • showToolHelp

        private void showToolHelp()
                           throws java.io.IOException
        Throws:
        java.io.IOException