org.apache.maven.scm.provider.git.gitexe.command.branch
Class GitCurrentBranchConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.git.gitexe.command.branch.GitCurrentBranchConsumer
- All Implemented Interfaces:
- StreamConsumer
public class GitCurrentBranchConsumer
- extends AbstractConsumer
This logger parses the output of git symbolic-ref HEAD
to determine the current branch.
- Version:
- $Id: GitCurrentBranchConsumer.java 823147 2009-10-08 12:39:23Z struberg $
- Author:
- Mark Struberg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GitCurrentBranchConsumer
public GitCurrentBranchConsumer(ScmLogger logger)
- Default constructor.
getBranchName
public String getBranchName()
consumeLine
public void consumeLine(String line)
-
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.