Branch information.
Summary
Constructors
| Visibility | Signature | 
|---|---|
| public | Branch( String name, String externalUrl, Repository repository) | 
| public | Branch( String  name,  String  externalUrl, intahead,intbehind, Repository repository) | 
Methods
| Type and modifiers | Method signature | 
|---|---|
| publicint | getAhead() | 
| publicint | getBehind() | 
| publicString | getExternalUrl() | 
| publicString | getName() | 
| publicRepository | getRepository() | 
| publicboolean | 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 branch on Github/Gitlab/etc…
getName()
Returns the branch name.
getRepository()
Returns the repository the branch belongs to.
isAheadBehindPresented()
Returns whether branch ahead and behind are defined/calculated/meaningful.
 
								