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

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

Introduction

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

Prototype

String CONFIG_KEY_EOL

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

Click Source Link

Document

The "eol" key

Usage

From source file:com.diffplug.gradle.spotless.GitAttributesLineEndingPolicy.java

License:Apache License

private GitAttributesLineEndingPolicy(Config config, List<AttributesRule> infoRules, File workTree,
        List<AttributesRule> globalRules) {
    this.infoRules = Objects.requireNonNull(infoRules);
    this.workTree = workTree;
    this.globalRules = Objects.requireNonNull(globalRules);
    this.defaultEnding = fromEol(config.getEnum(ConfigConstants.CONFIG_CORE_SECTION, null,
            ConfigConstants.CONFIG_KEY_EOL, EOL.NATIVE)).str();
}