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 LineEnding.Policy |
create(File projectDir,
Supplier<Iterable<File>> toFormat)
Creates a line-endings policy whose serialized state is relativized against projectDir,
at the cost of eagerly evaluating the line-ending state of every target file when the
policy is checked for equality with another policy.
|
public static LineEnding.Policy create(File projectDir, Supplier<Iterable<File>> toFormat)
Creates a line-endings policy whose serialized state is relativized against projectDir, at the cost of eagerly evaluating the line-ending state of every target file when the policy is checked for equality with another policy.