public class BranchTrackingStatus extends Object
Modifier and Type | Method | Description |
---|---|---|
int |
getAheadCount() |
|
int |
getBehindCount() |
|
String |
getRemoteTrackingBranch() |
|
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 © 2018. All rights reserved.