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

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

Introduction

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

Prototype

public int getNewLineCount() 

Source Link

Document

Get total number of post-image lines this hunk covers.

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();
}