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

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

Introduction

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

Prototype

RawTextComparator WS_IGNORE_CHANGE

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

Click Source Link

Document

Ignores whitespace occurring between non-whitespace characters.

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 ww.  j  av a 2  s . c o m*/
        return RawTextComparator.DEFAULT;
    }
}