public class BranchConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCAL_REPOSITORY
The value that means "local repository" for
getRemote():
"." |
| Constructor and Description |
|---|
BranchConfig(Config config,
String branchName)
Create a new branch config, which will read configuration from config
about specified branch.
|
| Modifier and Type | Method and 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 © 2014. All rights reserved.