Метод | Описание | |
---|---|---|
__construct ( |
||
commit ( ) | Checks if there is any change in the $mirror and commits it. If there was a forced change set, it takes precedence. | |
disableCommit ( ) | All commit() calls are ignored after calling this method. | |
discardPostponedCommit ( string $key ) | Unsets previously postponed commit. | |
forceChangeInfo ( |
Forces change info to be committed in the next call to commit(), overwriting whatever might have been captured by the VersionPress\Storages\Mirror. | |
postponeCommit ( string $key ) | The commit() method will not affect the repository after calling this method. | |
usePostponedChangeInfos ( string $key ) | Prepends previously postponedChangeInfos ChangeInfo objects to the current one. |
Метод | Описание | |
---|---|---|
existsMaintenanceFile ( ) | ||
flushChangeLists ( ) | ||
loadPostponedChangeInfos ( ) : |
||
postponeChangeInfo ( VersionPress\ChangeInfos\ChangeInfo[] $changeInfoList ) | ||
preprocessChangeInfoList ( |
Removes some ChangeInfo objects and replaces them with another. For example, it replaces post/draft and post/publish actions with single post/create action. | |
savePostponedChangeInfos ( $postponedChangeInfos ) | ||
shouldCommit ( ) : boolean | Returns false in the mid-step of WP update. | |
stageRelatedFiles ( |
Calls Git add -A on files that are related to the given $changeInfo. |
public __construct ( |
||
$mirror | ||
$repository | ||
$storageFactory |
public commit ( ) |
public disableCommit ( ) |
public discardPostponedCommit ( string $key ) | ||
$key | string | Key for postponedChangeInfos commit |
public forceChangeInfo ( |
||
$changeInfo |
public postponeCommit ( string $key ) | ||
$key | string | Key for postponedChangeInfos commit |
public usePostponedChangeInfos ( string $key ) | ||
$key | string | Key for postponedChangeInfos commit |