| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: number of commits that the local branch is ahead of the remote-tracking branchGet number of commits that the local branch is ahead of the remote-tracking branch |
| public int | Returns: number of commits that the local branch is behind of the remote-tracking branchGet number of commits that the local branch is behind of the remote-tracking branch |
| public String | Returns: full remote-tracking branch nameGet full remote-tracking branch name |
| public static BranchTrackingStatus | Returns: the tracking status, or null if it is not knownthe git repository to compute the status from repository, String the local branch branchName)Compute the tracking status for the |
| aheadCount | back to summary |
|---|---|
| private final int aheadCount | |
| behindCount | back to summary |
|---|---|
| private final int behindCount | |
| remoteTrackingBranch | back to summary |
|---|---|
| private final String remoteTrackingBranch | |
| BranchTrackingStatus | back to summary |
|---|---|
| private BranchTrackingStatus(String remoteTrackingBranch, int aheadCount, int behindCount) | |
| getAheadCount | back to summary |
|---|---|
| public int getAheadCount() Get number of commits that the local branch is ahead of the remote-tracking branch
| |
| getBehindCount | back to summary |
|---|---|
| public int getBehindCount() Get number of commits that the local branch is behind of the remote-tracking branch
| |
| getRemoteTrackingBranch | back to summary |
|---|---|
| public String getRemoteTrackingBranch() Get full remote-tracking branch name
| |
| of | back to summary |
|---|---|
| public static BranchTrackingStatus of(Repository repository, String branchName) throws IOException Compute the tracking status for the
| |