Class GitCurrentBranchConsumer

java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.git.gitexe.command.branch.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.
  • Field Details

  • Constructor Details

    • GitCurrentBranchConsumer

      public GitCurrentBranchConsumer(ScmLogger logger)
      Default constructor.
  • Method Details

    • getBranchName

      public String getBranchName()
    • consumeLine

      public void consumeLine(String line)