This method does not use the OutputStream associated with this DiffFormatter instance. It is therefore safe to instantiate this DiffFormatter instance with a {@link DisabledOutputStream} if this methodis the only one that will be used. @param ent the DiffEntry to create the FileHeader for @return a FileHeader representing the DiffEntry. The FileHeader's bufferwill contain only the header of the diff output. It will also contain one {@link HunkHeader}. @throws IOException the stream threw an exception while writing to it, or one of the blobs referenced by the DiffEntry could not be read. @throws CorruptObjectException one of the blobs referenced by the DiffEntry is corrupt. @throws MissingObjectException one of the blobs referenced by the DiffEntry is missing.
|
|