|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.patch.FileHeader
org.eclipse.jgit.patch.CombinedFileHeader
public class CombinedFileHeader
A file in the Git "diff --cc" or "diff --combined" format.
A combined diff shows an n-way comparison between two or more ancestors and the final revision. Its primary function is to perform code reviews on a merge which introduces changes not in any ancestor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jgit.patch.FileHeader |
|---|
FileHeader.ChangeType, FileHeader.PatchType |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jgit.patch.FileHeader |
|---|
changeType, DEV_NULL, newId, newMode |
| Method Summary | |
|---|---|
java.util.List<? extends CombinedHunkHeader> |
getHunks()
|
AbbreviatedObjectId |
getOldId()
Get the old object id from the index. |
AbbreviatedObjectId |
getOldId(int nthParent)
Get the ObjectId of the nth ancestor |
FileMode |
getOldMode()
|
FileMode |
getOldMode(int nthParent)
Get the file mode of the nth ancestor |
int |
getParentCount()
|
java.lang.String |
getScriptText(java.nio.charset.Charset[] charsetGuess)
Convert the patch script for this file into a string. |
java.lang.String |
getScriptText(java.nio.charset.Charset ocs,
java.nio.charset.Charset ncs)
Convert the patch script for this file into a string. |
protected void |
parseIndexLine(int ptr,
int eol)
|
protected void |
parseNewFileMode(int ptr,
int eol)
|
| Methods inherited from class org.eclipse.jgit.patch.FileHeader |
|---|
getBuffer, getChangeType, getEndOffset, getForwardBinaryHunk, getNewId, getNewMode, getNewName, getOldName, getPatchType, getReverseBinaryHunk, getScore, getScriptText, getStartOffset, hasMetaDataChanges, toEditList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.util.List<? extends CombinedHunkHeader> getHunks()
getHunks in class FileHeaderpublic int getParentCount()
public FileMode getOldMode()
getOldMode in class FileHeaderpublic FileMode getOldMode(int nthParent)
nthParent - the ancestor to get the mode of
public AbbreviatedObjectId getOldId()
FileHeaderindex.
getOldId in class FileHeaderpublic AbbreviatedObjectId getOldId(int nthParent)
nthParent - the ancestor to get the object id of
public java.lang.String getScriptText(java.nio.charset.Charset ocs,
java.nio.charset.Charset ncs)
FileHeader
getScriptText in class FileHeaderocs - hint character set to decode the old lines with.ncs - hint character set to decode the new lines with.
public java.lang.String getScriptText(java.nio.charset.Charset[] charsetGuess)
charsetGuess - optional array to suggest the character set to use when
decoding each file's line. If supplied the array must have a
length of getParentCount() + 1
representing the old revision character sets and the new
revision character set.
protected void parseIndexLine(int ptr,
int eol)
protected void parseNewFileMode(int ptr,
int eol)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||