| com.atlassian.stash.content.Diff |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the path for the changed file.
| |||||||||||
Retrieves a list containing zero or more
hunks describing the changed lines
within the file. | |||||||||||
Retrieves the path for the file before it was changed.
| |||||||||||
Retrieves a flag indicating whether the changed file is binary.
| |||||||||||
Retrieves a flag indicating whether the list of
hunks had to be truncated. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.stash.content.AttributeSupport
| |||||||||||
From interface
com.atlassian.stash.property.PropertySupport
| |||||||||||
Retrieves the path for the changed file.
This value has three categories:source, indicating the file was modified in-placegetSource() source}, indicating the file was copied, moved or
renamed, potentially with or without content changesnull, indicating the file was deletedsource may each be null, they will
never both be null.Retrieves a list containing zero or more hunks describing the changed lines
within the file. The list may be empty, but never null.
Retrieves the path for the file before it was changed.
This value has three categories:destination, indicating the file was modified in-placedestination, indicating the file was copied, moved or
renamed, potentially with or without content changesnull, indicating the file is newdestination and the source may each be null, they will never
both be null.Retrieves a flag indicating whether the changed file is binary. Binary files cannot be diffed.
Note: When this flag istrue, the hunks list will always be empty.true if the changed file is binary, indicating there is no diff; otherwise, false
Retrieves a flag indicating whether the list of hunks had to be truncated.
hunks,
segments and lines, allowing callers
to know exactly how the diff was truncated.
Note: If this flag is true but no hunks are truncated, it means at least one hunk was entirely omitted.true if the diff was truncated, removing one or more