public class BranchConfig extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static String |
LOCAL_REPOSITORY |
The value that means "local repository" for
getRemote():
"." |
| Constructor | Description |
|---|---|
BranchConfig(Config config,
String branchName) |
Create a new branch config, which will read configuration from config
about specified branch.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getMerge() |
|
String |
getRemote() |
|
String |
getRemoteTrackingBranch() |
|
String |
getTrackingBranch() |
|
boolean |
isRebase() |
|
boolean |
isRemoteLocal() |
public static final String LOCAL_REPOSITORY
getRemote():
"."public String getTrackingBranch()
null if it could
not be determinedpublic String getRemoteTrackingBranch()
null if it could
not be determined. If you also want local tracked branches use
getTrackingBranch() instead.public boolean isRemoteLocal()
true if the "remote" setting points to the local
repository (with "."), false otherwisepublic String getRemote()
null if not definedpublic String getMerge()
null if not definedpublic boolean isRebase()
true if the branch is configured to be rebasedCopyright © 2018. All rights reserved.