public class MergeConfig extends Object
| Modifier and Type | Method and Description | 
|---|---|
static MergeConfig | 
getConfigForCurrentBranch(Repository repo)
Get merge configuration for the current branch of the repository 
 | 
MergeCommand.FastForwardMode | 
getFastForwardMode()
Get the fast forward mode configured for this branch 
 | 
static Config.SectionParser<MergeConfig> | 
getParser(String branch)
Get a parser for use with
  
Config.get(SectionParser) | 
boolean | 
isCommit()
Whether  
--no-commit option is not set. | 
boolean | 
isSquash()
Whether merges into this branch are configured to be squash merges, false
 otherwise 
 | 
public static MergeConfig getConfigForCurrentBranch(Repository repo)
repo - a Repository object.public static final Config.SectionParser<MergeConfig> getParser(String branch)
Config.get(SectionParser)branch - short branch name to get the configuration for, as returned
            e.g. by Repository.getBranch()Config.get(SectionParser)public MergeCommand.FastForwardMode getFastForwardMode()
public boolean isSquash()
public boolean isCommit()
--no-commit option is not set.false if --no-commit is configured for this branch,
         true otherwise (even if --squash is configured)Copyright © 2020 Eclipse JGit Project. All rights reserved.