Example usage for org.eclipse.jgit.diff RawTextComparator WS_IGNORE_TRAILING

List of usage examples for org.eclipse.jgit.diff RawTextComparator WS_IGNORE_TRAILING

Introduction

In this page you can find the example usage for org.eclipse.jgit.diff RawTextComparator WS_IGNORE_TRAILING.

Prototype

RawTextComparator WS_IGNORE_TRAILING

To view the source code for org.eclipse.jgit.diff RawTextComparator WS_IGNORE_TRAILING.

Click Source Link

Document

Ignores trailing whitespace.

Usage

From source file:com.google.gerrit.server.patch.PatchListLoader.java

License:Apache License

private static RawTextComparator comparatorFor(Whitespace ws) {
    switch (ws) {
    case IGNORE_ALL_SPACE:
        return RawTextComparator.WS_IGNORE_ALL;

    case IGNORE_SPACE_AT_EOL:
        return RawTextComparator.WS_IGNORE_TRAILING;

    case IGNORE_SPACE_CHANGE:
        return RawTextComparator.WS_IGNORE_CHANGE;

    case IGNORE_NONE:
    default://from   w  w w .ja  v a 2s  .c  o m
        return RawTextComparator.DEFAULT;
    }
}