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 newPushAsIsCommand
which is converted usingCommitResult
for replicating to other replicas.final Author
author()
Returns the author who initiated the command.final long
Returns the time when performing the command, in milliseconds.final String
toString()
final CommandType
type()
Returns theCommandType
of the command.Methods inherited from class com.linecorp.centraldogma.server.command.AbstractPushCommand
baseRevision, changes, detail, equals, hashCode, markup, summary
Methods inherited from class com.linecorp.centraldogma.server.command.RepositoryCommand
executionPath, projectName, repositoryName
-
Method Details
-
asIs
Description copied from interface:NormalizableCommit
Returns a newPushAsIsCommand
which is converted usingCommitResult
for replicating to other replicas.- Specified by:
asIs
in interfaceNormalizableCommit
-
type
Description copied from interface:Command
Returns theCommandType
of the command. -
timestamp
public final long timestamp()Description copied from interface:Command
Returns the time when performing the command, in milliseconds. -
author
Description copied from interface:Command
Returns the author who initiated the command. -
toString
-