Class GitLatestRevisionCommandConsumer

java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.git.gitexe.command.update.GitLatestRevisionCommandConsumer
All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer

public class GitLatestRevisionCommandConsumer extends AbstractConsumer
  • Field Details

    • LATESTREV_PATTERN

      private static final Pattern LATESTREV_PATTERN
      The pattern used to match git log latest revision lines.
    • latestRevision

      private String latestRevision
  • Constructor Details

    • GitLatestRevisionCommandConsumer

      public GitLatestRevisionCommandConsumer()
  • Method Details

    • consumeLine

      public void consumeLine(String line)
    • getLatestRevision

      public String getLatestRevision()
    • processGetLatestRevision

      private void processGetLatestRevision(String line)
      Process the current input line for the latest revision.
      Parameters:
      line - a line of text from the git log output