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()
Get the name of the upstream branch as it is called on the remote
|
BranchConfig.BranchRebaseMode |
getRebaseMode()
Retrieves the config value of branch.[name].rebase.
|
String |
getRemote()
Get the remote this branch is configured to fetch from/push to
|
String |
getRemoteTrackingBranch()
Get the full remote-tracking branch name
|
String |
getTrackingBranch()
Get the full tracking branch name
|
boolean |
isRebase()
Whether the branch is configured to be rebased
|
boolean |
isRemoteLocal()
Whether the "remote" setting points to the local repository (with
".")
|
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.BranchRebaseMode
Copyright © 2019 Eclipse JGit Project. All rights reserved.