Class NormalizingPushCommand
java.lang.Object
com.linecorp.centraldogma.server.command.RepositoryCommand<CommitResult>
com.linecorp.centraldogma.server.command.AbstractPushCommand<CommitResult>
com.linecorp.centraldogma.server.command.NormalizingPushCommand
- All Implemented Interfaces:
Command<CommitResult>,NormalizableCommit
public final class NormalizingPushCommand
extends AbstractPushCommand<CommitResult>
implements NormalizableCommit
A
Command which is used for pushing changes to the repository. The changes are normalized via
Repository.previewDiff(Revision, Iterable) before they are applied.
You can find the normalized changes from the CommitResult.changes() that is the result of
CommandExecutor.execute(Command).-
Method Summary
Modifier and TypeMethodDescriptionasIs(CommitResult commitResult) Returns a newPushAsIsCommandwhich is converted usingCommitResultfor replicating to other replicas.final Authorauthor()Returns the author who initiated the command.final longReturns the time when performing the command, in milliseconds.final StringtoString()final CommandTypetype()Returns theCommandTypeof the command.Methods inherited from class com.linecorp.centraldogma.server.command.AbstractPushCommand
baseRevision, changes, detail, equals, hashCode, markup, summaryMethods inherited from class com.linecorp.centraldogma.server.command.RepositoryCommand
executionPath, projectName, repositoryName
-
Method Details
-
asIs
Description copied from interface:NormalizableCommitReturns a newPushAsIsCommandwhich is converted usingCommitResultfor replicating to other replicas.- Specified by:
asIsin interfaceNormalizableCommit
-
type
Description copied from interface:CommandReturns theCommandTypeof the command. -
timestamp
public final long timestamp()Description copied from interface:CommandReturns the time when performing the command, in milliseconds. -
author
Description copied from interface:CommandReturns the author who initiated the command. -
toString
-