Class RevWalkTextBuiltin

    • Field Detail

      • objects

        boolean objects
      • parents

        boolean parents
      • count

        boolean count
      • all

        boolean all
      • outbuffer

        char[] outbuffer
      • sorting

        private final java.util.EnumSet<RevSort> sorting
      • followPath

        private java.lang.String followPath
      • commits

        private java.util.List<RevCommit> commits
      • revLimiter

        private final java.util.List<RevFilter> revLimiter
      • maxCount

        private int maxCount
    • Constructor Detail

      • RevWalkTextBuiltin

        RevWalkTextBuiltin()
    • Method Detail

      • enableRevSort

        private void enableRevSort​(RevSort type,
                                   boolean on)
      • enableDateOrder

        void enableDateOrder​(boolean on)
      • enableTopoOrder

        void enableTopoOrder​(boolean on)
      • enableReverse

        void enableReverse​(boolean on)
      • enableBoundary

        void enableBoundary​(boolean on)
      • addAuthorRevFilter

        void addAuthorRevFilter​(java.lang.String who)
      • addCommitterRevFilter

        void addCommitterRevFilter​(java.lang.String who)
      • addCMessageRevFilter

        void addCMessageRevFilter​(java.lang.String msg)
      • run

        protected void run()
                    throws java.lang.Exception
        Perform the actions of this command.

        This method should only be invoked by TextBuiltin.execute(String[]).

        Specified by:
        run in class TextBuiltin
        Throws:
        java.lang.Exception - an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
      • createWalk

        protected RevWalk createWalk()
        Create RevWalk
        Returns:
        a RevWalk object.
      • walkLoop

        protected int walkLoop()
                        throws java.lang.Exception
        Loop the walk
        Returns:
        number of RevCommits walked
        Throws:
        java.lang.Exception - if any.
      • show

        protected abstract 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.

        Parameters:
        c - The current RevCommit
        Throws:
        java.lang.Exception
      • show

        protected void show​(ObjectWalk objectWalk,
                            RevObject currentObject)
                     throws java.lang.Exception
        "Show" the current RevCommit when called from the main processing loop.

        The default implementation does nothing because most subclasses only process RevCommits.

        Parameters:
        objectWalk - the ObjectWalk used by walkLoop()
        currentObject - The current RevObject
        Throws:
        java.lang.Exception