com.atlassian.bitbucket.content.Change |
Describes a single change made by a commit
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves conflict information, if any, related to this change.
| |||||||||||
An identifier for the content which was changed.
| |||||||||||
The executable permission for the file after the
change . | |||||||||||
An identifier from which the content was changed.
| |||||||||||
The path to the changed content.
| |||||||||||
The percentage of content that matches before and after a change.
| |||||||||||
The executable permission for the file before the
change . | |||||||||||
The path at which the changed content originated.
| |||||||||||
The type of change that was applied.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.bitbucket.property.PropertySupport
|
Retrieves conflict information, if any, related to this change.
When streaming changes
for a
pull request
, it is possible for some changes to be decorated with
conflict information. Other sources of change information, such as the
CommitService
, will never include conflicts on any of the
changes they return.
When conflict information is present, the conflicting changes
describe the changes that
were made on each side of the merge. Details provided with this change will not be accurate when conflict
information is present. Instead, this change will describe the way the conflict was handled by the system
to allow the merge to be committed.
null
if there is no conflict
An identifier for the content which was changed.
For deletions
, the returned content ID is for the content prior to deletion, since
there is no identifier available afterward. For all other types
, the identifier is for the
content after the change.
Some SCM implementations, such as Mercurial, do not provide content IDs. When working with repositories for
such SCMs, this value will be null
.
The executable permission for the file after the change
.
If the file was deleted
this value will be null
, since a deleted file is
neither executable nor non-executable. Otherwise, it will be true
or false
according to the
permissions on the file.
true
or false
for any change other than a deletion
;
null
for deleted files
An identifier from which the content was changed.
Some SCM implementations, such as Mercurial, do not provide content IDs. When working with repositories for
such SCMs, this value will be null
.
The percentage of content that matches before and after a change. This is useful, for example, in determining
the likelihood that an identified copy
or move
is correct.
Note: This feature may not be supported by all SCM implementations. Where it is not supported, it will always
return -1
.
-1
if it is not
The executable permission for the file before the change
.
If the file was created
this value will be null
, since the file was neither
executable nor non-executable before it was created. Otherwise, it will be true
or false
according to the permissions on the file.
true
or false
for any change other than a creation
;
null
for newly-created files