Class NormalizingPushCommand
java.lang.Object
com.linecorp.centraldogma.server.command.RepositoryCommand<T>
com.linecorp.centraldogma.server.command.AbstractPushCommand<CommitResult>
com.linecorp.centraldogma.server.command.NormalizingPushCommand
- All Implemented Interfaces:
Command<CommitResult>
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 from thisNormalizingPushCommand
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
Returns a newPushAsIsCommand
which is converted from thisNormalizingPushCommand
for replicating to other replicas. Unlike theNormalizingPushCommand
, the changes of thisCommand
are not normalized and applied as they are. -
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
-