public class BranchConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BranchConfig.BranchRebaseMode
Config values for branch.[name].rebase (and pull.rebase).
|
| 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() |
BranchConfig.BranchRebaseMode |
getRebaseMode()
Retrieves the config value of branch.[name].rebase.
|
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 rebasedpublic BranchConfig.BranchRebaseMode getRebaseMode()
BranchConfig.BranchRebaseModeCopyright © 2018 Eclipse JGit Project. All rights reserved.