Class Diff

    • Field Detail

      • cached

        private boolean cached
      • showPatch

        boolean showPatch
      • detectRenames

        private java.lang.Boolean detectRenames
      • renameLimit

        private java.lang.Integer renameLimit
      • showNameAndStatusOnly

        private boolean showNameAndStatusOnly
    • Constructor Detail

      • Diff

        Diff()
    • Method Detail

      • noRenames

        void noRenames​(boolean on)
      • ignoreSpaceAtEol

        void ignoreSpaceAtEol​(boolean on)
      • ignoreLeadingSpace

        void ignoreLeadingSpace​(boolean on)
      • ignoreSpaceChange

        void ignoreSpaceChange​(boolean on)
      • ignoreAllSpace

        void ignoreAllSpace​(boolean on)
      • unified

        void unified​(int lines)
      • abbrev

        void abbrev​(int lines)
      • abbrev

        void abbrev​(boolean on)
      • sourcePrefix

        void sourcePrefix​(java.lang.String path)
      • dstPrefix

        void dstPrefix​(java.lang.String path)
      • noPrefix

        void noPrefix​(boolean on)
      • init

        protected void init​(Repository repository,
                            java.lang.String gitDir)
        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.
      • nameStatus

        static void nameStatus​(ThrowingPrintWriter out,
                               java.util.List<DiffEntry> files)
                        throws java.io.IOException
        Throws:
        java.io.IOException