Class Log

    • Field Detail

      • allRefsByPeeledObjectId

        private java.util.Map<AnyObjectId,​java.util.Set<Ref>> allRefsByPeeledObjectId
      • noteMaps

        private java.util.Map<java.lang.String,​NoteMap> noteMaps
      • decorate

        private boolean decorate
      • noStandardNotes

        private boolean noStandardNotes
      • additionalNoteRefs

        private java.util.List<java.lang.String> additionalNoteRefs
      • showPatch

        boolean showPatch
      • detectRenames

        private java.lang.Boolean detectRenames
      • renameLimit

        private java.lang.Integer renameLimit
      • showNameAndStatusOnly

        private boolean showNameAndStatusOnly
    • Constructor Detail

      • Log

        Log()
    • Method Detail

      • addAdditionalNoteRef

        void addAdditionalNoteRef​(java.lang.String notesRef)
      • dateFormat

        void dateFormat​(java.lang.String date)
      • 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.
      • addNoteMap

        private void addNoteMap​(java.lang.String notesRef)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • show

        protected void show​(RevCommit c)
                     throws java.lang.Exception
        "Show" the current RevCommit when called from the main processing loop.

        Implement this methods to define the behavior for subclasses of RevWalkTextBuiltin.

        Specified by:
        show in class RevWalkTextBuiltin
        Parameters:
        c - The current RevCommit
        Throws:
        java.lang.Exception
      • showNotes

        private boolean showNotes​(RevCommit c)
                           throws java.io.IOException
        Parameters:
        c -
        Returns:
        true if at least one note was printed, false otherwise
        Throws:
        java.io.IOException
      • showNotes

        private boolean showNotes​(RevCommit c,
                                  NoteMap map,
                                  java.lang.String label,
                                  boolean emptyLine)
                           throws java.io.IOException
        Parameters:
        c -
        map -
        label -
        emptyLine -
        Returns:
        true if note was printed, false otherwise
        Throws:
        java.io.IOException
      • showDiff

        private void showDiff​(RevCommit c)
                       throws java.io.IOException
        Throws:
        java.io.IOException