public class BranchTrackingStatus
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getAheadCount() |
int |
getBehindCount() |
java.lang.String |
getRemoteTrackingBranch() |
static BranchTrackingStatus |
of(Repository repository,
java.lang.String branchName)
Compute the tracking status for the
branchName in
repository . |
public static BranchTrackingStatus of(Repository repository, java.lang.String branchName) throws java.io.IOException
branchName
in
repository
.repository
- the git repository to compute the status frombranchName
- the local branchjava.io.IOException
public java.lang.String getRemoteTrackingBranch()
public int getAheadCount()
public int getBehindCount()
Copyright © 2012. All Rights Reserved.