Class GitCurrentBranchConsumer

  • All Implemented Interfaces:
    org.codehaus.plexus.util.cli.StreamConsumer

    public class GitCurrentBranchConsumer
    extends AbstractConsumer
    This logger parses the output of git symbolic-ref HEAD to determine the current branch.
    Author:
    Mark Struberg
    • Constructor Detail

      • GitCurrentBranchConsumer

        public GitCurrentBranchConsumer​(ScmLogger logger)
        Default constructor.
    • Method Detail

      • getBranchName

        public String getBranchName()
      • consumeLine

        public void consumeLine​(String line)