Class GitInfoConsumer

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

public class GitInfoConsumer extends AbstractConsumer
Parses output of git log with a particular format and populates a InfoItem.
Since:
1.5
See Also:
  • Field Details

    • infoItem

      private final InfoItem infoItem
    • revisionLength

      private final int revisionLength
  • Constructor Details

    • GitInfoConsumer

      public GitInfoConsumer(Path path, int revisionLength)
  • Method Details

    • consumeLine

      public void consumeLine(String line)
      Parameters:
      line - the line which is supposed to have the format as specified by getFormatArgument()
      See Also:
      • StreamConsumer.consumeLine(java.lang.String)
    • getInfoItem

      public InfoItem getInfoItem()
    • getFormatArgument

      public static org.codehaus.plexus.util.cli.Arg getFormatArgument()
      The format argument to use with git log
      Returns:
      the format argument to use git log command
      See Also: