com.atlassian.stash.content.Change |
Describes a change which occurred within a given Changeset
.
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 . | |||||||||||
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.stash.content.AttributeSupport
| |||||||||||
From interface
com.atlassian.stash.property.PropertySupport
|
Retrieves conflict information, if any, related to this change.
Whenstreaming 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 conflictAn identifier for the content which was changed.
Fordeletions
, 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
.
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
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.
-1
.-1
if it is not
The executable permission for the file before the change
.
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