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.
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private AbbreviatedObjectId[] | |
| private FileMode[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public List | getHunks()
Overrides org. Get hunks altering this file; in order of appearance in patch |
| public AbbreviatedObjectId | Returns: get the object id of the first parent.Overrides org. Get the old object id from the |
| public AbbreviatedObjectId | Returns: the id of the requested ancestor.the ancestor to get the object id of nthParent)Get the ObjectId of the nth ancestor |
| public FileMode | Returns: get the file mode of the first parent.Overrides org. Get the old file mode |
| public FileMode | Returns: the mode of the requested ancestor.the ancestor to get the mode of nthParent)Get the file mode of the nth ancestor |
| public int | Returns: number of ancestor revisions mentioned in this diff.Overrides org.
|
| public String | getScriptText(Charset
hint character set to decode the old lines with. ocs, Charset hint character set to decode the new lines with. ncs)Overrides org. Convert the patch script for this file into a string. |
| public String | getScriptText(Charset[]
hint which charset is used charsetGuess)Overrides org. Convert the patch script for this file into a string. |
| pack-priv HunkHeader | |
| private void | |
| pack-priv int | |
| protected void | |
| private void | |
| protected void |
| MODE | back to summary |
|---|---|
| private static final byte[] MODE | |
| oldIds | back to summary |
|---|---|
| private AbbreviatedObjectId[] oldIds | |
| oldModes | back to summary |
|---|---|
| private FileMode[] oldModes | |
| CombinedFileHeader | back to summary |
|---|---|
| pack-priv CombinedFileHeader(byte[] b, int offset) | |
| getHunks | back to summary |
|---|---|
| public List Overrides org. Doc from org. Get hunks altering this file; in order of appearance in patch
| |
| getOldId | back to summary |
|---|---|
| public AbbreviatedObjectId getOldId() Overrides org. Doc from org. Get the old object id from the
| |
| getOldId | back to summary |
|---|---|
| public AbbreviatedObjectId getOldId(int nthParent) Get the ObjectId of the nth ancestor
| |
| getOldMode | back to summary |
|---|---|
| public FileMode getOldMode() Overrides org. Doc from org. Get the old file mode | |
| getOldMode | back to summary |
|---|---|
| public FileMode getOldMode(int nthParent) Get the file mode of the nth ancestor
| |
| getParentCount | back to summary |
|---|---|
| public int getParentCount() Overrides org.
| |
| getScriptText | back to summary |
|---|---|
| public String getScriptText(Charset ocs, Charset ncs) Overrides org. Doc from org. Convert the patch script for this file into a string. | |
| getScriptText | back to summary |
|---|---|
| public String getScriptText(Charset[] charsetGuess) Overrides org. Doc from org. Convert the patch script for this file into a string. | |
| newHunkHeader | back to summary |
|---|---|
| pack-priv HunkHeader newHunkHeader(int offset) Overrides org.
| |
| parseDeletedFileMode | back to summary |
|---|---|
| private void parseDeletedFileMode(int ptr, int eol) | |
| parseGitHeaders | back to summary |
|---|---|
| pack-priv int parseGitHeaders(int ptr, int end) Overrides org.
| |
| parseIndexLine | back to summary |
|---|---|
| protected void parseIndexLine(int ptr, int eol) Overrides org.
| |
| parseModeLine | back to summary |
|---|---|
| private void parseModeLine(int ptr, int eol) | |
| parseNewFileMode | back to summary |
|---|---|
| protected void parseNewFileMode(int ptr, int eol) Overrides org.
| |