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.
|
Modifier and Type | Method and Description |
---|---|
String |
getId() |
String |
getName() |
GitBranch |
getTrackedBranch() |
boolean |
isActive() |
boolean |
isRemote() |
String |
toString() |
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.