Example usage for org.eclipse.jgit.patch HunkHeader getOldImage

List of usage examples for org.eclipse.jgit.patch HunkHeader getOldImage

Introduction

In this page you can find the example usage for org.eclipse.jgit.patch HunkHeader getOldImage.

Prototype

public OldImage getOldImage() 

Source Link

Document

Get information about the old image mentioned in this hunk.

Usage

From source file:org.eclipse.orion.server.git.patch.ApplyError.java

License:Open Source License

private String toString(HunkHeader hh) {
    StringBuilder buf = new StringBuilder();
    buf.append("HunkHeader["); //$NON-NLS-1$
    buf.append(hh.getOldImage().getStartLine() + "," + hh.getOldImage().getLineCount()); //$NON-NLS-1$
    buf.append("->"); //$NON-NLS-1$
    buf.append(hh.getNewStartLine() + "," + hh.getNewLineCount()); //$NON-NLS-1$
    buf.append("]"); //$NON-NLS-1$
    return buf.toString();
}