public final class GitAttributesLineEndings extends Object
Uses .gitattributes to determine the appropriate line ending. Falls back to the core.eol
property in the git config if there are no applicable git attributes, then finally falls back to the platform native.
Modifier and Type | Method and Description |
---|---|
static com.diffplug.spotless.extra.GitAttributesLineEndings.Policy |
create(File projectDir,
Supplier<Iterable<File>> toFormat) |
public static com.diffplug.spotless.extra.GitAttributesLineEndings.Policy create(File projectDir, Supplier<Iterable<File>> toFormat)