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

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

Introduction

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

Prototype

public FileHeader getFileHeader() 

Source Link

Document

Get header for the file this hunk applies to.

Usage

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

License:Open Source License

/**
 * @param hh/* w  w  w . j  a  v a  2  s.c  o  m*/
 *            hunk header
 * @param t
 *           hunk control char
*/
public ApplyError(HunkHeader hh, HunkControlChar hcc) {
    this(hh.getFileHeader(), ChangeType.MODIFY, hcc);
    this.hunkHeader = hh;
}