Branch information.
Summary
Constructors
Visibility | Signature |
---|---|
public |
Branch( String name, String externalUrl, Repository repository) |
public |
Branch( String name, String externalUrl, int ahead, int behind, Repository repository) |
Methods
Type and modifiers | Method signature |
---|---|
public int |
getAhead() |
public int |
getBehind() |
public String |
getExternalUrl() |
public String |
getName() |
public Repository |
getRepository() |
public boolean |
isAheadBehindPresented() |
Constructors
Branch(String, String, Repository)
Branch(String, String, int, int, Repository)
Methods
getAhead()
How far ahead is the branch from the main branch.
getBehind()
How far behind is the branch from the main branch.
getExternalUrl()
Link to the btanch on github/gitlab/etc..
getName()
Returns the branch name.
getRepository()
Returns a repository the branch beelongs to.
isAheadBehindPresented()
Returns whether branch ahead and behind are defined/calculated/meaningful.