docs/static/reference/php/Dagger/Changeset.html
class Changeset extends AbstractObject implements IdAble
A comparison between two directories representing changes that can be applied.
| | $lastQuery | | from AbstractObject |
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
from AbstractObject
null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
from AbstractObject
array
Files and directories that were added in the newer directory.
after()
The newer/upper snapshot.
asPatch()
Return a Git-compatible patch of the changes
before()
The older/lower snapshot to compare against.
array
Structured per-path diff statistics (kind and line counts) for this changeset.
string
export(string $path)
Applies the diff represented by this changeset to a path on the host.
id()
A unique identifier for this Changeset.
bool
isEmpty()
Returns true if the changeset is empty (i.e. there are no changes).
layer()
Return a snapshot containing only the created and modified files
array
Files and directories that existed before and were updated in the newer directory.
array
Files and directories that were removed. Directories are indicated by a trailing slash, and their child paths are not included.
sync()
Force evaluation in the engine.
withChangeset(Changeset $changes, ChangesetMergeConflict|null $onConflict = null)
Add changes to an existing changeset
withChangesets(array $changes, ChangesetsMergeConflict|null $onConflict = null)
Add changes from multiple changesets using git octopus merge strategy
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain) No description
| AbstractClient | $client | | | QueryBuilderChain | $queryBuilderChain | |
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)No description
| QueryBuilder | $leafQueryBuilder | | | string | $leafKey | |
| null|array|string|int|float|bool | |
array addedPaths()Files and directories that were added in the newer directory.
| array | |
Directory after()The newer/upper snapshot.
| Directory | |
File asPatch()Return a Git-compatible patch of the changes
| File | |
Directory before()The older/lower snapshot to compare against.
| Directory | |
array diffStats()Structured per-path diff statistics (kind and line counts) for this changeset.
| array | |
string export(string $path)Applies the diff represented by this changeset to a path on the host.
| string | $path | |
| string | |
AbstractId id()A unique identifier for this Changeset.
| AbstractId | |
bool isEmpty()Returns true if the changeset is empty (i.e. there are no changes).
| bool | |
Directory layer()Return a snapshot containing only the created and modified files
| Directory | |
array modifiedPaths()Files and directories that existed before and were updated in the newer directory.
| array | |
array removedPaths()Files and directories that were removed. Directories are indicated by a trailing slash, and their child paths are not included.
| array | |
ChangesetId sync()Force evaluation in the engine.
| ChangesetId | |
Changeset withChangeset(Changeset $changes, ChangesetMergeConflict|null $onConflict = null)Add changes to an existing changeset
By default the operation will fail in case of conflicts, for instance a file modified in both changesets. The behavior can be adjusted using onConflict argument
| Changeset | $changes | | | ChangesetMergeConflict|null | $onConflict | |
| Changeset | |
Changeset withChangesets(array $changes, ChangesetsMergeConflict|null $onConflict = null)Add changes from multiple changesets using git octopus merge strategy
This is more efficient than chaining multiple withChangeset calls when merging many changesets.
Only FAIL and FAIL_EARLY conflict strategies are supported (octopus merge cannot use -X ours/theirs).
| array | $changes | | | ChangesetsMergeConflict|null | $onConflict | |
| Changeset | |
Generated by Doctum, a API Documentation generator and fork of Sami.