public final class GitBranch extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_BRANCH
Symbolic name for a detached HEAD.
|
static GitBranch |
NO_BRANCH_INSTANCE
A null branch instance.
|
public static final String NO_BRANCH
public static final GitBranch NO_BRANCH_INSTANCE
public String getName()
public boolean isRemote()
true when the branch represents a branch from a remote, false otherwisepublic boolean isActive()
true when the branch is checked out, false otherwisepublic String getId()
public GitBranch getTrackedBranch()
null when no tracking is set.Built on May 16 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.