public class BranchTrackingStatus extends Object
Modifier and Type | Method and Description |
---|---|
int |
getAheadCount()
Get number of commits that the local branch is ahead of the
remote-tracking branch
|
int |
getBehindCount()
Get number of commits that the local branch is behind of the
remote-tracking branch
|
String |
getRemoteTrackingBranch()
Get full remote-tracking branch name
|
static BranchTrackingStatus |
of(Repository repository,
String branchName)
Compute the tracking status for the
branchName in
repository . |
public static BranchTrackingStatus of(Repository repository, String branchName) throws IOException
branchName
in
repository
.repository
- the git repository to compute the status frombranchName
- the local branchIOException
public String getRemoteTrackingBranch()
public int getAheadCount()
public int getBehindCount()
Copyright © 2020 Eclipse JGit Project. All rights reserved.