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

public class GitBlameConsumer extends AbstractConsumer
Parses the --porcelain format of git-blame For more information about the porcelain format, please read the official GIT blame porcelain format description.
Since:
1.4
  • Field Details

    • GIT_COMMITTER_PREFIX

      private static final String GIT_COMMITTER_PREFIX
      See Also:
    • GIT_COMMITTER

      private static final String GIT_COMMITTER
      See Also:
    • GIT_COMMITTER_TIME

      private static final String GIT_COMMITTER_TIME
      See Also:
    • GIT_AUTHOR

      private static final String GIT_AUTHOR
      See Also:
    • lines

      private List<BlameLine> lines
    • commitInfo

      private Map<String,BlameLine> commitInfo
      Since the porcelain format only contains the commit information the first time a specific sha-1 commit appears, we need to store this information somwehere. key: the sha-1 of the commit value: the BlameLine containing the full committer/author info
    • expectRevisionLine

      private boolean expectRevisionLine
    • revision

      private String revision
    • author

      private String author
    • committer

      private String committer
    • time

      private Date time
  • Constructor Details

    • GitBlameConsumer

      public GitBlameConsumer(ScmLogger logger)
  • Method Details

    • consumeLine

      public void consumeLine(String line)
    • getLines

      public List<BlameLine> getLines()