Example usage for org.eclipse.jgit.lib ConfigConstants CONFIG_KEY_FF

List of usage examples for org.eclipse.jgit.lib ConfigConstants CONFIG_KEY_FF

Introduction

In this page you can find the example usage for org.eclipse.jgit.lib ConfigConstants CONFIG_KEY_FF.

Prototype

String CONFIG_KEY_FF

To view the source code for org.eclipse.jgit.lib ConfigConstants CONFIG_KEY_FF.

Click Source Link

Document

The "ff" key

Usage

From source file:org.eclipse.egit.core.test.op.MergeOperationTest.java

License:Open Source License

private void setMerge(FastForwardMode ffMode) throws IOException {
    StoredConfig config = testRepository.getRepository().getConfig();
    config.setEnum(ConfigConstants.CONFIG_KEY_MERGE, null, ConfigConstants.CONFIG_KEY_FF,
            FastForwardMode.Merge.valueOf(ffMode));
    config.save();/*from  w ww  .ja  v a2  s.c  o m*/
}