Example usage for org.eclipse.jgit.diff RawText EMPTY_TEXT

List of usage examples for org.eclipse.jgit.diff RawText EMPTY_TEXT

Introduction

In this page you can find the example usage for org.eclipse.jgit.diff RawText EMPTY_TEXT.

Prototype

RawText EMPTY_TEXT

To view the source code for org.eclipse.jgit.diff RawText EMPTY_TEXT.

Click Source Link

Document

A RawText of length 0

Usage

From source file:org.openflexo.hannah.IterativeFileGenerator.java

License:Open Source License

private RawText getRawText(ObjectId id) throws IOException {
    if (ObjectId.zeroId().equals(id)) {
        return RawText.EMPTY_TEXT;
    }/*w w  w .  ja va  2  s .co m*/
    final ObjectLoader loader = git.getRepository().open(id, Constants.OBJ_BLOB);
    return new RawText(loader.getCachedBytes());
}