Class Log


class Log extends RevWalkTextBuiltin
  • Field Details

    • dateFormatter

      private GitDateFormatter dateFormatter
    • diffFmt

      private DiffFormatter diffFmt
    • allRefsByPeeledObjectId

      private Map<AnyObjectId,Set<Ref>> allRefsByPeeledObjectId
    • noteMaps

      private Map<String,NoteMap> noteMaps
    • decorate

      private boolean decorate
    • noStandardNotes

      private boolean noStandardNotes
    • additionalNoteRefs

      private List<String> additionalNoteRefs
    • showSignature

      private boolean showSignature
    • showPatch

      boolean showPatch
    • detectRenames

      private Boolean detectRenames
    • renameLimit

      private Integer renameLimit
    • showNameAndStatusOnly

      private boolean showNameAndStatusOnly
    • verifier

      private GpgSignatureVerifier verifier
    • config

      private GpgConfig config
  • Constructor Details

    • Log

      Log()
  • Method Details

    • addAdditionalNoteRef

      void addAdditionalNoteRef(String notesRef)
    • dateFormat

      void dateFormat(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(String path)
    • dstPrefix

      void dstPrefix(String path)
    • noPrefix

      void noPrefix(boolean on)
    • init

      protected void init(Repository repository, 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.
    • run

      protected void run()
      Perform the actions of this command.

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

      Overrides:
      run in class RevWalkTextBuiltin
    • addNoteMap

      private void addNoteMap(String notesRef) throws IOException
      Throws:
      IOException
    • show

      protected void show(RevCommit c) throws 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:
      Exception
    • showSignature

      private void showSignature(RevCommit c) throws IOException
      Throws:
      IOException
    • showNotes

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

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

      private void showDiff(RevCommit c) throws IOException
      Throws:
      IOException